标签:roo tables mys flush localhost etc use nta containe
vi /etc/my.cnf
[mysqld]
skip-grant-tables
/etc/init.d/mysqld restart
use mysql;
update user set authentication_string=password(‘123456‘) where user=‘root‘ and host=‘localhost‘;
flush privileges;
/etc/init.d/mysqld restart
vi /etc/my.cnf
[mysqld]
skip-grant-tables #delete
/etc/init.d/mysqld restart
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘123456‘;
标签:roo tables mys flush localhost etc use nta containe
原文地址:https://www.cnblogs.com/yanyanqaq/p/12801710.html