解决办法:
1.关闭mysql
service mysql stop
2.安全模式登录
mysqld_safe –skip-grant-table
3.新开一个窗口
mysql -u root
mysql> delete from user where user=”“;
mysql> FLUSH PRIVILEGES
解决办法:
1.关闭mysql
service mysql stop
2.安全模式登录
mysqld_safe –skip-grant-table
3.新开一个窗口
mysql -u root
mysql> delete from user where user=”“;
mysql> FLUSH PRIVILEGES