一押桃、系統(tǒng)管理
功能 | 命令 |
---|---|
啟動mysql服務(wù) | net start mysql |
停止mysql服務(wù) | net stop mysql |
登錄mysql數(shù)據(jù)庫 | mysql [-h主機地址] -u用戶名 -p密碼 |
二厌均、
功能 | 命令 |
---|---|
查詢?nèi)繑?shù)據(jù)庫 | show databases; |
查詢指定數(shù)據(jù)庫創(chuàng)建信息 | show create database 數(shù)據(jù)庫名; |
查詢指定數(shù)據(jù)庫中所有表 | show tables; |
查詢指定表詳情 | desc 表名; |
執(zhí)行文件中sql命令 | source 文件地址 |