Home  >  Article  >  Database  >  How to display the MySQL database currently in use?

How to display the MySQL database currently in use?

王林
王林forward
2023-08-31 18:57:111123browse

How to display the MySQL database currently in use?

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

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

This command displays the database we are currently using tutorial.

The above is the detailed content of How to display the MySQL database currently in use?. 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