奇葩问题:Ignoring query to other database解决方法

 

Mysql错误:Ignoring query to other database解决方法

今天登陆mysql show databases出现Ignoring query to other database错误,又试了几个命令和sql全部提示Ignoring query to other database错误

错误如下图:


mysql> show databases;
Ignoring query to other database
mysql> show tables;
Ignoring query to other database

折腾了半天才发现原来是在连接mysql时没有"-u"参数导致的

 

重新连接mysql 加上-u参数 一切正常

 

 

小河里翻了船。。。。希望同样大意翻船的小伙伴有用

 

posted @ 2019-05-31 01:22  Double_K  阅读(423)  评论(0)    收藏  举报