设置MySQLroot账户密码报错ERROR 1064 (42000): You have an error in your SQL syntax;的解决方案
作者:梁同学与Android
在安装mysql的时候,设置root账户密码出现了ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds..错误,本文小编给大家介绍了相关的解决方案,需要的朋友可以参考下
设置mysql中的root账户密码出现1064错误代码
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 ‘(“123456”) where user=“root”’ at line 1
在安装mysql的时候,设置root账户密码出现了上面的问题
解决方案
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
截图
以上就是设置MySQLroot账户密码报错ERROR 1064 (42000): You have an error in your SQL syntax;的解决方案的详细内容,更多关于设置mysql中root密码出现1064的资料请关注脚本之家其它相关文章!
您可能感兴趣的文章:
- 解决MySQL登录报错1130:1130 Host ***.***.***.*** is not allowed to connect to this MySQL server
- MySQL启动报错:Starting MySQL.. ERROR! The server quit without updating PID file的问题分析和解决
- 解决mysql报错:1264-Out of range value for column ‘字段‘ at row 1
- 解决MySQL报错:The last packet sent successfully to the server was 0 milliseconds ago.