1. 程式人生 > >阿里雲ECS Linux命令之MySQL

阿里雲ECS Linux命令之MySQL

1、連線MYSQL:mysql -uroot -p
2、檢視所有的資料庫:show databases;
3、use 命令選擇資料庫 例如 use information_schema
4、檢視資料庫中的表:show tables;
5、查看錶結構:desc table_name;
6、退出mysql操作:exit