Problem
You connect to the MySql server from the shell and after switching between some databases you forget which database is selected.
Solution
mysql> SELECT DATABASE();
If no database is selected, the query will return null.
You connect to the MySql server from the shell and after switching between some databases you forget which database is selected.
mysql> SELECT DATABASE();
If no database is selected, the query will return null.