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

What is the mysql command to view the database?

烟雨青岚
Release: 2020-06-11 13:01:28
Original
11299 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template