当前位置:   article > 正文

mysql修改密码报错_mysql server version for the right syntax to use n

mysql server version for the right syntax to use near 'identified by '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 '('123
456') where user='root'' at line 1
终于找到了这个方法,成功解决!

ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

注意:部分需要大写!!!


原文链接:https://blog.csdn.net/Exception_sir/article/details/82111014

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/509009
推荐阅读
相关标签
  

闽ICP备14008679号