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

mysql删除密码

Posted on 2016-10-24 09:44  bw_0927  阅读(206)  评论(0)    收藏  举报
  1. killall mysql
  2. mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
  3. 密码的消除 
    1、以root登录:mysql -u root -p 
    2、mysql>use mysql; 
    3、mysql>update user set password='' where user='root'; 
    重启mysql服务就生效了。