1. 用root用户登录mysql
mysql -u root -p
2. 查看database
show databases;
3. 查看table
use database名
show tables;
4. 退出
quit or exit
1. 用root用户登录mysql
mysql -u root -p
2. 查看database
show databases;
3. 查看table
use database名
show tables;
4. 退出
quit or exit