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

mysql报错:You must reset your password using ALTER USER statement before executing this statement.

解决办法(进mysql的bin下面,执行以下命令):

1. SET PASSWORD = PASSWORD('your new password');

2. ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;

3. flush privileges;
正在加载评论...