Home >Database >Mysql Tutorial >What is the mysql command to view the database?
mysql view database command:
1. View all databases: show databases.
#2. View the currently used database: select database().
#3. Check the port used by the database: show variables like 'port'.
#4. Check the database encoding: show variables like 'character%'.
Recommended tutorial: "mysql tutorial"
The above is the detailed content of What is the mysql command to view the database?. For more information, please follow other related articles on the PHP Chinese website!