mysql Ignoring query to other database错误异常

现象

进入mysql后,执行命令都会返回“Ignoring query to other database”错误。

mysql> show databases;
Ignoring query to other database

原因

因为在登录的时候使用了mysql -root 方法

去掉-root即可

猜你喜欢

转载自blog.csdn.net/lizz861109/article/details/112396333