MySQL :Ignoring query to other database

urgel_babay發表於2016-02-29
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 。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30936525/viewspace-2016603/,如需轉載,請註明出處,否則將追究法律責任。

相關文章