Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Ignoring query to other database" command line

Tags:

mysql

I keep getting this weird message, while executing any query in command prompt MySQL.

ignoring query to other database 

I have already tried changing the database by issuing the "use database_name" command.

like image 368
Mohd Abdul Mujib Avatar asked Mar 21 '16 13:03

Mohd Abdul Mujib


1 Answers

Ok, It seems, I had missed the "u" flag for user so accidentally I had input the following command.

mysql -root -p // Faulty connection 

Instead of ...

mysql -uroot -p // Correct connection 

Notice the missing "u" from the Faulty connection.

like image 139
Mohd Abdul Mujib Avatar answered Sep 28 '22 02:09

Mohd Abdul Mujib