赞
踩
vi /etc/my.cnf
在[mysqld]下面加
skip-grant-tables
mysql -u root -p
flush privileges;
set password for root@localhost=‘新密码’;