See which MySQL database is currently in use

Posted Over 11 years ago. Visible to the public.

When you work in the MySQL console and you want to see which database is used, type:

SELECT database();

The result you see is the database you would activate with

USE database_name;
Last edit
About 11 years ago
License
Source code in this card is licensed under the MIT License.
Posted to makandra dev (2012-09-12 14:29)