mysql基本數據庫查看操作

(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)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章