alter user ‘root‘@’localhost’identified with mysql_native_password by ‘新密码’;
这行会报错,You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘mysql_native_password by 123456’ at line 1
正确如下:
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘123456’;
————————————————
版权声明:本文为CSDN博主「空中旋转篮球」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/soderayer/article/details/115867758