摘要:
vi /etc/my.cnf在[mysqld]下面增加一行skip-grant-tables 重启 /etc/init.d/mysqld restart/usr/local/mysql/bin/mysql -uroot mysql> update user set authentication_st 阅读全文
摘要:
1,修改/etc/my.cnf添加添加skip-grant参数,重启mysql. 2,登录mysql mysql -uroot 3, 更新user中root的密码 use mysql; update user set password=password ('npasswd') where user= 阅读全文