phpmyadmin 忘记密码重设password
phpmyadmin 忘记密码,使用以下代码进行修改。
1.停止mysql服务:
/etc/init.d/mysql stop
2.跳过验证启动MySQL
/usr/local/mysql/bin/mysqld_safe –-skip-grant-tables >/dev/null 2>&1 &
第三步,准备重新设置新密码
/usr/local/mysql/bin/mysql -u root mysql
重置新密码
update user set authentication_string = Password('新密码') where User = 'root';
更新权限
flush privileges;
退出
exit;
4.重新启动MYSQL
killall mysqld /etc/init.d/mysql start
end
相关推荐
theScoreONE 2020-08-23
左转有出口 2020-08-17
amberom 2020-06-07
清风徐来水波不兴 2020-06-01
zhangxiaocc 2020-05-03
zhaowj00 2020-04-10
aaLiweipeng 2020-03-27
程序员之怒 2020-02-24
Skyline 2020-02-14
amberom 2020-02-03
shenx 2020-01-07
igogo00 2020-01-12
poplpsure 2020-01-07
luckymaoyy 2019-12-25
数据库成长之路 2019-11-24
pupur 2015-03-03
王科 2008-06-23