mysql中show属于_mysql show的常见用法
a. show tables或show tables from database_name; // 顯示當(dāng)前數(shù)據(jù)庫中所有表的名稱
b. show databases; // 顯示mysql中所有數(shù)據(jù)庫的名稱
c. show columns from table_name from database_name; 或show columns from database_name.table_name;?? // 顯示表中列名稱
d. show grants for user_name@localhost;?? //?? 顯示一個用戶的權(quán)限,顯示結(jié)果類似于grant 命令
e. show index from table_name;?? // 顯示表的索引
f. show status;?? // 顯示一些系統(tǒng)特定資源的信息,例如,正在運行的線程數(shù)量
g. show variables; // 顯示系統(tǒng)變量的名稱和值
h. show?? processlist; // 顯示系統(tǒng)中正在運行的所有進程,也就是當(dāng)前正在執(zhí)行的查詢。大多數(shù)用戶可以查看
他們自己的進程,但是如果他們擁有process權(quán)限,就可以查看所有人的進程,包括密碼。
i. show table status; // 顯示當(dāng)前使用或者指定的database中的每個表的信息。信息包括表類型和表的最新更新時間
j. show privileges;?? // 顯示服務(wù)器所支持的不同權(quán)限
k. show create database database_name; // 顯示create database 語句是否能夠創(chuàng)建指定的數(shù)據(jù)庫
l. show create table table_name; // 顯示create database 語句是否能夠創(chuàng)建指定的數(shù)據(jù)庫
m. show engines;?? // 顯示安裝以后可用的存儲引擎和默認引擎。
n. show innodb status; // 顯示innoDB存儲引擎的狀態(tài)
o. show logs; // 顯示BDB存儲引擎的日志
p. show warnings; // 顯示最后一個執(zhí)行的語句所產(chǎn)生的錯誤、警告和通知
q. show errors; // 只顯示最后一個執(zhí)行語句所產(chǎn)生的錯誤
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的mysql中show属于_mysql show的常见用法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么鼠标反应慢电脑卡(电脑鼠标反映慢)
- 下一篇: freebsd nginx php my