时间:2021-07-01 10:21:17 帮助过:5人阅读
进去mysql里设置root密码
mysql> update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘ ;
Query OK, 1 row affected, 1 warning (0.09 sec)
Rows matched: 1 Changed: 1 Warnings: 1
mysql> exit
Bye
[root@mha ~]# vi /etc/my.cnf ###进去把skip-grant-tables注释了
[root@mha ~]# systemctl restart mysqld
MySQL5.7改密码无password字段
标签:没有 http 图片 string process date user restart erro