phpmyadmin 忘记密码重设password

phpmyadmin 忘记密码,使用如下代码进行修改。
1.中止mysql服务:php

/etc/init.d/mysql stop

2.跳过验证启动MySQLmysql

/usr/local/mysql/bin/mysqld_safe –-skip-grant-tables >/dev/null 2>&1 &

第三步,准备从新设置新密码sql

/usr/local/mysql/bin/mysql -u root mysql

重置新密码code

update user set authentication_string = Password('新密码') where User = 'root';

更新权限ip

flush privileges;

退出string

exit;

4.从新启动MYSQLit

killall mysqld
/etc/init.d/mysql start

endio

相关文章
相关标签/搜索