ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@altlinux.com>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] вопрос по MySQL-5.0
Date: Tue, 26 Jan 2010 20:22:30 +0300
Message-ID: <hjn8cg$rvc$1@ger.gmane.org> (raw)

Коллеги,

кто-то использует функцию "длинные пароли" в MySQL-server-5.0.83 из 
Sisyphus ?

Я пробовал её  - она не работает.

Примерно это выглядит так:
с нуля ставим MySQL-server

запускаем (базы чистые). Смотрим поля:
# echo 'describe user'|mysql -u root mysql|grep User
User    char(16)        NO      PRI

16 символов. После этого выполняем:
# mysql_fix_username_length
This script updates all the mysql system tables to be usable by
username length patch, e.g. allowing User field > 16 chars.

WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
WARNING! This changes make your DB incompatible with other
MySQL servers/clients don't using this patch.

done


далее смотрим:
# echo 'describe user'|mysql -u root mysql|grep User
User    char(32)        NO      PRI


Всё красиво, стало 32 и root коннектится.

# mysqladmin flush-privileges

После этого всё. Никак достучаться до MySQL нельзя:
# echo 'describe user'|mysql -u root mysql|grep User
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using 
password: NO)

У кого-то работает патч для длинных имён ?




             reply	other threads:[~2010-01-26 17:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 17:22 Anton Farygin [this message]
2010-01-26 19:51 ` Michael Bykov
2010-01-26 20:45   ` Anton Farygin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hjn8cg$rvc$1@ger.gmane.org' \
    --to=rider@altlinux.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git