Ignoring query to other database

时间:2023-02-16 09:47:43

Ignoring query to other database

自己今天刚遇到,进入MySQL的时候,输入show databases; 
产生如下错误
错误提示

Ignoring query to other database

郁闷,半天,怎么查询不了,开了最大的权限啊。 
最后“谷哥”上看了下,原来自己在登录mysql的时候,-uroot中的用户少写了u 

错误如下代码

[root@wxseio1003 ~]# mysql -root -p
Enter password:

正确如下代码

[root@wxseio1003 ~]# mysql -uroot -p
Enter password: