gongdongyang

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

sudo su
mysqld_safe --skip-grant-tables --skip-networking &

UPDATE mysql.user SET password=PASSWORD(’新密码’) WHERE User=’root’;
mysql> FLUSH PRIVILEGES

update mysql.user set authentication_string=password('root') where user='root' ;

posted on 2016-05-27 23:15  Angel_GONG  阅读(205)  评论(0编辑  收藏  举报