Posted about 9 years ago. Visible to the public.

See which MySQL database is currently in use

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

Copy
SELECT database();

The result you see is the database you would activate with

Copy
USE database_name;
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Martin Straub
Last edit:
over 8 years ago
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Martin Straub to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more