安装mysql修改root密码出现1064(42000)错误

错误:mysql> set password = password('新密码')
ERROR 1064 (42000): You have an
corresponds to your MySQL server
ord(`lihaiming1992`)' at line 1

 

1、解决方式:

SET PASSWORD = '123456'

2、解决方式:

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

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页