Home  >  Article  >  Database  >  Can mysql have several databases?

Can mysql have several databases?

little bottle
little bottleOriginal
2019-05-09 17:49:574183browse

Can mysql have several databases?

Some friends may not understand it very well and think that there is only one database in mysql. In fact, in addition to several newly created databases, there are four other databases in mysql. The names are information_schema, mysql, performance_schema, and test.


Follow the following steps to know all databases in mysql:

1. Log in to the mysql database through the terminal

mysql -u root -p    // 进入mysql安装目录1

2. Display all databases Name

show databases;

The above is the detailed content of Can mysql have several databases?. 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