(Owed by: 春夜喜雨 http://blog.csdn.net/chunyexiyu)
參考:https://www.runoob.com/mysql/mysql-select-database.html
參考:https://blog.csdn.net/xlxxcc/article/details/51754524
參考:https://blog.csdn.net/weixin_39791387/article/details/81908762
登錄:
->mysql -h ipaddress -P port -u username -p
輸入password:
檢查有哪些數據庫:
show databases;
選中數據庫:
use db;
顯示數據庫有哪些表:
show tables;
檢查表字段:
DESC user
檢查表的schema:
show create table user;
(Owed by: 春夜喜雨 http://blog.csdn.net/chunyexiyu)