MySQL

Error: “Ignoring query to other database” when running a mySql command in the command line

Written by Ian Carnaghan · 9 sec read >

E.g. SELECT  * FROM users; or SHOW tables;

In the command line make sure you used the correct syntax when connecting to mySql

Correct example:

mysql -uroot -ppassword

Wrong example: (This is what I did that caused this error)

mysql -rroot -ppassword

Last Updated On March 23, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of