原贴:http://www.humen1.com/labels/unix.html
忘记mysql密码?[freebsd]
#killall mysqld
#/usr/local/bin/mysqld_safe --skip-grant-tables &
#mysql
...
mysql>use mysql
mysql>update user set password=password("root") where user="root";
mysql>flush privileges;
mysql>exit
#killall mysqld
#/usr/local/etc/rc.d/mysql_server start
#mysql -u root -p
#Enter password: root
mysql>
#Enter password: root
mysql>
本文介绍了一种在FreeBSD环境下重置MySQL密码的方法。通过停止MySQL服务、启动MySQL服务并跳过权限表、登录MySQL并更新root用户的密码,最后重启MySQL服务来完成密码重置。
1546

被折叠的 条评论
为什么被折叠?



