show tables或show tables from database_name;
解釋:顯示當前數(shù)據(jù)庫中所有表的名稱
show databases;
解釋:顯示mysql中所有數(shù)據(jù)庫的名稱
show processlist;
解釋:顯示系統(tǒng)中正在運行的所有進程,也就是當前正在執(zhí)行的查詢。大多數(shù)用戶可以查看
他們自己的進程,但是如果他們擁有process權限,就可以查看所有人的進程,包括密碼。-
show table status;
解釋:顯示當前使用或者指定的database中的每個表的信息。信息包括表類型和表的最新更新時間
show columns from table_name from database_name; 或show columns from database_name.table_name;
解釋:顯示表中列名稱
show grants for user_name@localhost;
解釋:顯示一個用戶的權限,顯示結果類似于grant 命令
show index from table_name;
解釋:顯示表的索引
show status;
解釋:顯示一些系統(tǒng)特定資源的信息,例如,正在運行的線程數(shù)量
show variables;
解釋:顯示系統(tǒng)變量的名稱和值
show privileges;
解釋:顯示服務器所支持的不同權限
show create database database_name;
解釋:顯示create database 語句是否能夠創(chuàng)建指定的數(shù)據(jù)庫
show create table table_name;
解釋:顯示create database 語句是否能夠創(chuàng)建指定的數(shù)據(jù)庫
show engies;
解釋:顯示安裝以后可用的存儲引擎和默認引擎。
show innodb status;
解釋:顯示innoDB存儲引擎的狀態(tài)
show logs;
解釋:顯示BDB存儲引擎的日志
show warnings;
解釋:顯示最后一個執(zhí)行的語句所產生的錯誤、警告和通知
show errors;
解釋:只顯示最后一個執(zhí)行語句所產生的錯誤 本文出自:億恩科技【prubsntakaful.com】
服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]
|