How to view the database in Mysql

The first step: enter the database

mysql -u root -p

Prompt for password, enter your root user password (not displayed by default)

As shown in the figure below:
Insert picture description here
Note: If the mysql command does not add environment variables, the command needs to bring the mysql command path

Step 2: View all databases

show databases;
Insert picture description here

Guess you like

Origin blog.csdn.net/baidu_24752135/article/details/107990838