Home Databases mySql Error: "Ignoring query to other database" when running a mySql command in the command line
 
 
 

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

PDF Print E-mail

Question: I get the the following error: "Ignoring query to other database" when running a mySql command in the command line. Eg. SELECT  * FROM users; or SHOW tables;

 

Answer: 

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

+/-
  • unknown
    try to open mysql in other command prompt
  • MySqluser - this also happened to me
    What I did I connected to mysql the following way

    mysql -Uuser -ppassword

    The I used a database that does not exists

    eg use nonExistent

    I got the error when I tried to show all tables. :-(

    I quit logged in using mysql -uroot -ppassword used the correct database and
    then it worked
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!