1. 任務:
安裝MySQL,並查看數據庫 information_schema 有那些表?
2. 命令
# 安裝MySQL
sudo apt-get install mysql-server
# 查看是否安裝好
sudo netstat -tap | grep mysql
# 啓動服務
sudo service mysql start
# 登陸MySQL
sudo mysql -u root
# 查看所有數據庫
show databases;
# 選擇當前執行的數據庫
use information_schema;
# 查看當前數據庫擁有的所有表
show tables;
# 推出MySQL
quit