How should I display MySQL database that is currently in use?



We can display the name of MySQL database that is currently in use by Select Database() command.

mysql> select database();
+------------+
| database() |
+------------+
| tutorial   |
+------------+
1 row in set (0.00 sec)

This command shows that we currently use tutorial database.

Updated on: 2020-01-28T10:38:56+05:30

122 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements