Mysql常见报错解决

时间:2022-11-30 20:26:28

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

  • step 1
    SET PASSWORD = PASSWORD('your new password');
  • step 2
    ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
  • step 3
    flush privileges;
  • 完成以上三步退出再登,使用新设置的密码就行了,以上除了红色的自己修改成新密码外,其他原样输入即可