Home > Database > Mysql Tutorial > body text

Can mysql have several databases?

little bottle
Release: 2020-09-16 09:25:42
Original
4270 people have browsed it

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
Copy after login

2. Display all databases Name

show databases;
Copy after login

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!

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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!