How can we display a list of currently existing MySQL databases on the server?


The SHOW DATABASES command is used to display the list of currently existing MySQL databases.

mysql> Show Databases;

+-----------------------------+
| Database                    |
+-----------------------------+
| information_schema          |
| gaurav                      |
| mysql                       |
| performance_schema          |
| query                       |
| query1                      |
| sys                         |
| tutorials                   |
+-----------------------------+

8 rows in set (0.02 sec)

Updated on: 28-Jan-2020

63 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements