一、mysql5.7 开始新版的mysql数据库下的user表中已经没有password字段了保持密码的字段变成了authentication_string字段
如下:
mysql> update user set authentication_string=password(‘123456’) where user=‘root’;
Query OK, 4 rows affected, 1 warning (0.01 sec)
mysql> flush privileges;
一、mysql5.7 开始新版的mysql数据库下的user表中已经没有password字段了保持密码的字段变成了authentication_string字段
如下:
mysql> update user set authentication_string=password(‘123456’) where user=‘root’;
Query OK, 4 rows affected, 1 warning (0.01 sec)
mysql> flush privileges;