MySQL :Ignoring query to other database

2014.10.31
    遇见了一个低级的报错,记下来:

[root@ZHANGLIN bin]# ./mysql -root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 87506
Server version: 5.6.19 Source distribution

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
Ignoring query to other database
mysql> use mysql;
Database changed
mysql> show tables;
Ignoring query to other database
mysql>

出现这个是因为登录MySQL的时候,没有加上 'u'  也就是  -uroot 。

请使用浏览器的分享功能分享到微信等