引數彙總
5.7預設
innodb_read_io_threads=4
innodb_write_io_threads=4
innodb_change_buffer_max_size=25
innodb_thread_concurrency=0(不限制)
innodb_buffer_pool_load_at_startup=on --要設定為on
innodb_buffer_pool_dump_at_shutdown=on --要設定為On
innodb_old_blocks_pct --預設37
innodb_old_blocks_time--預設1000
lower_case_table_names=0(區分大小寫)
explicit_defaults_for_timestamp=on
root@localhost 10:21: [(none)]> show global status like '%innodb_log_wait%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| Innodb_log_waits | 0 |
+------------------+-------+
1 row in set (0.00 sec)
root@localhost 11:03: [(none)]> show global status like '%binlog_cache%';
+-----------------------+-----------+
| Variable_name | Value |
+-----------------------+-----------+
| Binlog_cache_disk_use | 79020 |
| Binlog_cache_use | 112372305 |
+-----------------------+-----------+
統計每個庫大小:
select table_schema,sum(data_length)/1024/1024/1024 as data_length,sum(index_length)/1024/1024/1024 as index_length,sum(data_length+index_length)/1024/1024/1024 as sum_data_index from information_schema.tables where table_schema!='information_schema' and table_schema!='mysql' group by table_schema;
統計每個表大小:
select table_name,data_length,index_length,sum(data_length+index_length)/1024/1024 as total_size from information_schema.tables where table_schema='cus_0042' group by table_name order by total_size desc;
統計所有資料庫的大小:
select sum(data_length+index_length)/1024/1024/1024 from information_schema.tables;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2215471/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 引腳複用彙總
- pygame模組引數彙總(python遊戲程式設計)GAMPython遊戲程式設計
- redis info memory命令的各項引數解釋彙總Redis
- 時序資料庫 TDengine 3.0 引數體系使用方式彙總資料庫
- parallel rollback引數總結Parallel
- Vagrant box 命令彙總彙總
- Python函式引數總結Python函式
- Mybatis引數處理總結MyBatis
- Linux環境變數問題彙總Linux變數
- Flink常用的配置引數總結
- jquery彙總jQuery
- 好用API資源彙總,含免費次數API
- consul配置引數大全、詳解、總結
- openai GPT引數(入參)使用總結OpenAIGPT
- ARM彙編指令集彙總
- 好用的API介面大彙總,含免費次數API
- 演算法面試題彙總_2求眾數演算法面試題
- Git命令彙總Git
- VUE元件彙總Vue元件
- css 技巧彙總CSS
- 資料彙總
- artisan命令彙總
- vagrant命令彙總
- OP code彙總
- bookStore疑惑彙總
- IE功能彙總
- Python類彙總Python
- 彙總資料
- go 命令彙總Go
- gstreamer命令彙總
- git 命令彙總Git
- ClickHouse 命令彙總
- keycloak文章彙總
- 積體電路人才引進政策彙總,哪個城市最給力?
- 開發者常用的API彙總,含免費次數API
- 離散數學 II(最全面的知識點彙總)
- (4)caffe總結之視覺層及引數視覺
- (6)caffe總結之其它常用層及引數