Bug #68409 mysql-5.6.10 crashes with SET @@session.old_passwords = 0; and secure-auth=0 wit

Submitted: 17 Feb 2013 10:38 Modified: 21 Feb 2013 13:31
Reporter: Simon Mudd Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: General Severity:S3 (Non-critical)
Version:5.6.10 OS:Any
Assigned to: CPU Architecture:Any

[17 Feb 2013 10:38] Simon Mudd
Description:
Seen on server that was running MySQL-server 5.5.16 and which I've just tried to upgrade to 5.6.10. I had run (to be sure, given a previous issue) mysql_upgrade on the 5.5.16 version prior to performing the upgrade.

I then installed the 5.6.10 version but could not login to use mysql_upgrade as I had an old password (short hash) for the root@localhost user.
While trying to resolve this I crashed 5.6.10 when doing SET @@session.old_passwords = 0, followed by GRANT USAGE on *.* to root@localhost IDENTIFIED by 'password' (trying to create a "long password".)

Note: the documentation on how to solve this didn't seem very clear. I was aware of the old_passwords setting but hadn't noticed the secure-auth. This situation is a bit of a pain to solve when you want to run mysql_upgrade and it won't let you in because of the short password.

Finally resolved this by doing an explicit SET @@session.old_passwords = 0; SELECT PASSWORD('password') /* to get the long password */;
UPDATE mysql.user SET Password = 'hash_from_above' WHERE User = 'root' and Host = 'localhost' ;

Just was not expecting 5.6.10 to crash.

How to repeat:
start mysql 5.6.10 with a user with a short password, and have /etc/my.cnf secure-auth = 0.
login to mysql with the user (this assumes user with full privileges)
run:

SET @@session.old_passwords = 0;
GRANT USAGE ON *.* to root@localhost IDENTIFIED BY 'xxxxxxxxxxxx';

crash info to be attached.

Suggested fix:
don't crash.
[17 Feb 2013 10:39] Simon Mudd
mysqld.log file showing the crash info.

Attachment: crash_info.txt (text/plain), 8.58 KiB.

[21 Feb 2013 13:31] Shane Bester
This crash is a duplicate of: 
http://bugs.mysql.com/bug.php?id=68385

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.048 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.