ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] вопрос по MySQL-5.0
@ 2010-01-26 17:22 Anton Farygin
  2010-01-26 19:51 ` Michael Bykov
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Farygin @ 2010-01-26 17:22 UTC (permalink / raw)
  To: sisyphus

Коллеги,

кто-то использует функцию "длинные пароли" в 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)

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-26 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-26 17:22 [sisyphus] вопрос по MySQL-5.0 Anton Farygin
2010-01-26 19:51 ` Michael Bykov
2010-01-26 20:45   ` Anton Farygin

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