mysql> set password for `root`@`localhost`=password(`123456`);
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 'passw
ord(`123456`)' at line 1
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
Query OK, 0 rows affected (0.02 sec)
https://blog.youkuaiyun.com/qq_43270153/article/details/108148441
本文介绍了如何在MySQL中为root用户设置密码,初学者可能遇到的错误(如语法问题)及解决方案。通过ALTER USER语句成功设置了密码'123456'。
1086

被折叠的 条评论
为什么被折叠?



