Home >Database >Mysql Tutorial >What is the mysql command to view the database?

What is the mysql command to view the database?

烟雨青岚
烟雨青岚Original
2020-06-11 13:01:2811300browse

What is the mysql command to view the database?

mysql view database command:

1. View all databases: show databases.

What is the mysql command to view the database?

#2. View the currently used database: select database().

What is the mysql command to view the database?

#3. Check the port used by the database: show variables like 'port'.

What is the mysql command to view the database?

#4. Check the database encoding: show variables like 'character%'.

What is the mysql command to view the database?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn