MySQL8修改密码注意事项
https://jingyan.baidu.com/article/25648fc1f1111cd191fd00e5.html
MySQL8应该使用alter命令来进行修改,
而且由于密码策略也变化了,设置密码时需要达到一定的复杂程度才行,一般是需要大小字母、特殊字符和数字。
修改密码
mysql> alter user 'root'@'localhost' identified by 'Root@123456';
记录精彩的程序人生
https://jingyan.baidu.com/article/25648fc1f1111cd191fd00e5.html
MySQL8应该使用alter命令来进行修改,
而且由于密码策略也变化了,设置密码时需要达到一定的复杂程度才行,一般是需要大小字母、特殊字符和数字。
修改密码
mysql> alter user 'root'@'localhost' identified by 'Root@123456';