代码语言:javascript复制
service mysqld stop
代码语言:javascript复制mysqld_safe --skip-grant-tables &
update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';
代码语言:javascript复制service mysql restart
代码语言:javascript复制set password for 'root'@'localhost'=password('123');
注意密码强度
(adsbygoogle = window.adsbygoogle || []).push({});