mysql -uroot -p
mysql>use mysql;
mysql> delete from user where user='';
Query OK, 2 rows affected (0.02 sec)
mysql> flush privileges;
mysql >exit
附: 用文件里mysql.exe打开数据库
mysql.exe的路径> mysql -h localhost(服务器IP) -u root -pw password
mysql -uroot -p
mysql>use mysql;
mysql> delete from user where user='';
Query OK, 2 rows affected (0.02 sec)
mysql> flush privileges;
mysql >exit
附: 用文件里mysql.exe打开数据库
mysql.exe的路径> mysql -h localhost(服务器IP) -u root -pw password