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:
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;