Prerequisite: Use the DOS window to operate the database
login database
mysql -hlocalhost -uroot -p 回车输入密码
view all databases
show databases; 回车 切记加分号
use database
use study; 回车 //study 要使用的数据库名称
View all tables in the database
show tables; 回车
View the detailed structure of the table
desc employee; 回车
exit database
exit 回车
Return to previous file
cd ../
go to next file
cd 文件名 回车 //可以 cd 文件名首写字母+tab键补全 回车
Use last action statement
方向键↑
use the next action statement
方向键↓
Clear all console operations
cls 回车