Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

运行Mysql命令提示Ignoring query to other database:

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

MariaDB [(none)]> show engines;
Ignoring query to other database
MariaDB [(none)]> show databases;
Ignoring query to other database

最后发现是在服务器上连接时没有指定user(没有加-u 用户)导致的。重新用mysql -u root -p输入密码连接后一切正常。

彭哥的IDC私房菜(www.urbansh.com)撰写,转载请注明出处http://www.urbansh.com/mysql-ignoring-query-to-other-database.html