欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

MySQL修改密码报错:ERROR 1064 (42000): You have an error in your SQL syntax;check the manual that correspon

程序员文章站 2024-03-16 23:18:34
...

问题描述:
修改密码报错: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(‘123’)’ at line 1
参考翻译:
错误1064(42000):您的SQL语法有错误; 查看与您的MySQL服务器版本相对应的手册以获取正确的语法,以在第1行的“ password(‘123’)”附近使用

解决办法:

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

MySQL修改密码报错:ERROR 1064 (42000): You have an error in your SQL syntax;check the manual that correspon