摘要: 方法一: # /etc/init.d/mysql stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u root mysql mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root'; mysql> FLUSH PRIVILEGES; mysql> quit # /etc/init.d/mysql restart # mysql -uro 阅读全文
posted @ 2013-08-26 20:47 huangxiaohen 阅读(214) 评论(0) 推荐(0) 编辑