1: SET PASSWORD = PASSWORD(‘your new password‘);
2: ALTER USER ‘root‘@‘localhost‘ PASSWORD EXPIRE NEVER;
3: flush privileges;
完成以上三步退出再登,使用新设置的密码就行了
1: SET PASSWORD = PASSWORD(‘your new password‘);
2: ALTER USER ‘root‘@‘localhost‘ PASSWORD EXPIRE NEVER;
3: flush privileges;
完成以上三步退出再登,使用新设置的密码就行了