现象
进入mysql后,执行命令都会返回“Ignoring query to other database”错误。
mysql> show databases;
Ignoring query to other database
原因
因为在登录的时候使用了mysql -root 方法
去掉-root即可
进入mysql后,执行命令都会返回“Ignoring query to other database”错误。
mysql> show databases;
Ignoring query to other database
因为在登录的时候使用了mysql -root 方法
去掉-root即可