"Ignoring query to other database" command line

Solution 1:

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.