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

mysql5.7 找回root密码

2016-01-03 00:00 555 查看
摘要: 5.7 password 换名字了

[root@166087 mysql]# /usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf --datadir=/data/mysql --skip-grant-tables
mysql> update user set authentication_string=password('123456') where user='root';
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: