错误:
mysql> set password for root@localhost=password('Mysql123456');
-> ;
ERROR 1064 (42000): 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 'password('Mysql123456');' at line 1
解决办法:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Mysql123456';
刷新权限:
flush privileges;
来源:CSDN
作者:Zsigner
链接:https://blog.csdn.net/Zsigner/article/details/104632563