Ignoring query to other database

mysql> show databases;
Ignoring query to other database
mysql> exit
想查看都有哪些数据库,执行命令的时候报Ignoring query to other database,郁闷的了不得,网上搜了一下,发现是我链接mysql的时候写错了。连接mysql的时候写成了

[root@sl ~]# /usr/local/mysql/bin/mysql -root 

解决办法:root前面加上u就好了

posted on 2014-08-15 09:49  zitong  阅读(327)  评论(0编辑  收藏  举报