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 '11. set password for 'root'@'localhost'

image
中文意思:设置密码错误1064(42000):你有一个错误在你的SQL语法;检查对应于MySQL服务器版本的手册,以确定使用'11附近的正确语法。在第1行设置root @ localhost =password('hspedu100')'的密码

执行这行代码就可以解决上面这个问题。
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

posted @ 2021-11-20 10:49  小洋ssr  阅读(514)  评论(0编辑  收藏  举报