您的位置:首页 > 数据库 > MySQL

MySQL 5.7修改默认密码

2016-01-19 16:38 501 查看
修改mysql.user方式修改密码
mysql> update mysql.user set authentication_string=password('123qwe') where user='svoid' and Host = 'localhost';
Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MySQL5.7修改mysql数据库的user表的时候,不能再用 update user set password=password("123456") where user="root";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: