修改mysql密码时遇见ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that correspo

修改mysql密码时遇见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(‘123456’)’ at line 1报错

如下图:
在这里插入图片描述
这个句子翻译过来的意思是:您的SQL语法有错误;请查看MySQL服务器版本对应的手册,在第1行的“password(‘123456’)”附近使用正确的语法。
这是我在找的代码嘿嘿:ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
用起来还不错,已经成功了

在这里插入图片描述
注意:后面有个“;”符号啊!!!

发布了7 篇原创文章 · 获赞 22 · 访问量 200

猜你喜欢

转载自blog.csdn.net/hanhanwanghaha/article/details/105611976
今日推荐