破解MySQL和修改mysql的密码

/etc/init.d/mysql stop

mysqld_safe --user=mysql --skip-grant-tables --skip-networking &

mysql -uroot mysql

update user set password=PASSWORD('netpassword') where user='root';

flush privileges;

quit

###########################################################

mysql>update mysql.user set password=PASSWORD('hello') where user='root';

posted on 2013-08-08 11:53  语辰  阅读(160)  评论(0编辑  收藏  举报