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)

Advertisements