vi /etc/my.cnf
skip_grant_tables
service mysqld restart
mysql -uroot -p
use mysql;
退出mysql:update user set authentication_string = password('123456') where user='root';
更高版本数据库可使用以下命令:
update user set password = password('123456') where user='root';
exit
vi /etc/my.cnf #去除以下内容
skip_grant_tables
service mysqld restart
mysql -uroot -p
![]() windows如何挂载webda | ![]() linux服务器同步互联 |
![]() 亚马逊云lightsail服 | ![]() hostdare 4折,七折优 |