6. 显示单表信息
敕令:show table status like table_name。
感化:显示表具体信息。
例子:
- mysql> show table status like "t_base_data"\G;
- *************************** 1. row ***************************
- Name: t_base_data
- Engine: InnoDB
- Version: 10
- Row_format: Dynamic
- Rows: 2
- Avg_row_length: 8192
- Data_length: 16384
- Max_data_length: 0
- Index_length: 0
- Data_free: 0
- Auto_increment: 3
- Create_time: 2017-12-08 00:30:03
- Update_time: NULL
- Check_time: NULL
- Collation: utf8_unicode_ci
- Checksum: NULL
- Create_options:
- Comment:
- 1 row in set (0.00 sec)
留意:该敕令具体的┞饭示了表的信息,个中包含表名,表的存储引擎,版本,数据长度,索引长度,创建时光,修改时光等等。
7. 显示过程数
敕令: show processlist。
感化:显示正在操作数据库的过程数。
例子:
- mysql> show processlist\G;
- *************************** 1. row ***************************
- Id: 6
- User: root
- Host: localhost
- db: andyqian
- Command: Query
- Time: 0
- State: starting
- Info: show processlist
- *************************** 2. row ***************************
- Id: 7
推荐阅读
开辟者大年夜赛路演 | 12月16日,技巧立异,北京不见不散 传统上,在建立一个新的数据中间时,大年夜约35%的本>>>详细阅读
本文标题:十个非常实用的MySQL命令!
地址:http://www.17bianji.com/lsqh/39718.html
1/2 1