Bug #81404 misleading error message of alter user

Submitted: 12 May 2016 18:49 Modified: 13 May 2016 8:51
Reporter: Louis Cardali Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Security: Privileges Severity:S3 (Non-critical)
Version:5.7.12 OS:Ubuntu
Assigned to: CPU Architecture:Any

[12 May 2016 18:49] Louis Cardali
Description:
Fresh install forces a password change from the installation created password. Tells to use ALTER USER, which fails and repeats the error to use ALTER USER.

How to repeat:
Did a fresh install of MySQL 5.7 on Ubuntu 15.10

Started the MySQL CLI and used the credentials provided in the install.

# mysql -u root -p
mysql> create database iamtesting;
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> alter user root identified by 'new-passwd';
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

Work around is to use set password.
mysql>set password = 'new-passwd';
Query OK, 0 rows affected (0.00 sec)
[13 May 2016 8:51] MySQL Verification Team
Hello Louis Cardali,

Thank you for the report.

Thanks,
Umesh

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

Page generated in 0.050 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.