You must reset your password using ALTER USER mac mysql error You must reset your password using ALTER USER statement before executing this statement.

 

mac mysql error You must reset your password using ALTER USER statement before executing this statement.

After installing mysql, after logging in, no matter what command is run, it always prompts this

step 1: SET PASSWORD = PASSWORD('your new password');

step 2: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;

step 3: flush privileges;

Complete the above three steps to log out and log in again, just use the newly set password. Except for the red one that is changed to a new password, you can enter the rest as it is.

Reference 1: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html

Reference 2: http://dev.mysql.com/doc/refman/5.7/en/password-expiration-policy.html

Reference 3: http://stackoverflow.com/questions/33467337/reset-mysql-root-password-using-alter-user-statement-after-install-on-mac

 

mac mysql error You must reset your password using ALTER USER statement before executing this statement.

After installing mysql, after logging in, no matter what command is run, it always prompts this

step 1: SET PASSWORD = PASSWORD('your new password');

step 2: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;

step 3: flush privileges;

Complete the above three steps to log out and log in again, just use the newly set password. Except for the red one that is changed to a new password, you can enter the rest as it is.

Reference 1: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html

Reference 2: http://dev.mysql.com/doc/refman/5.7/en/password-expiration-policy.html

Reference 3: http://stackoverflow.com/questions/33467337/reset-mysql-root-password-using-alter-user-statement-after-install-on-mac

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325526937&siteId=291194637