Home  >  Article  >  Database  >  How to display the list of MySQL databases currently existing on the server?

How to display the list of MySQL databases currently existing on the server?

WBOY
WBOYforward
2023-08-24 16:09:081209browse

How to display the list of MySQL databases currently existing on the server?

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)

The above is the detailed content of How to display the list of MySQL databases currently existing on the server?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete