"Ignoring query to other database" Command line

Mysql

Mysql Problem Overview


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.

Mysql Solutions


Solution 1 - Mysql

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMohd Abdul MujibView Question on Stackoverflow
Solution 1 - MysqlMohd Abdul MujibView Answer on Stackoverflow