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!