Home > Database > Mysql Tutorial > Can mysql have several databases?

Can mysql have several databases?

little bottle
Release: 2020-09-16 09:25:42
Original
4365 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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template