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!