1.关闭服务service mysqld stop
2.屏蔽权限mysqld_safe --skip-grant-table
3.查看进程 ps -ef |grep mysql
4.杀死进程 kill -9 xxx(如果有多余的进程的话)
5.mysql -uroot
6.use mysql
7. delete from user where user=' '
8.重启服务service mysqld restart
9.mysql -uroot -proot
1.关闭服务service mysqld stop
2.屏蔽权限mysqld_safe --skip-grant-table
3.查看进程 ps -ef |grep mysql
4.杀死进程 kill -9 xxx(如果有多余的进程的话)
5.mysql -uroot
6.use mysql
7. delete from user where user=' '
8.重启服务service mysqld restart
9.mysql -uroot -proot