參數對比列表
更新時間 2024-02-22 11:03:17
最近更新時間: 2024-02-22 11:03:17
分享文章
本節主要介紹參數對比列表
在進行數據庫遷移時,為了確保遷移成功后業務應用的使用不受影響,數據復制服務提供了參數對比功能幫助您進行源庫和目標庫參數一致性對比。
本章節針對不同的引擎版本,列舉了常見的常規參數及性能參數,方便您在使用參數對比功能時進行參考。
MySQL 5.6版本
表 MySQL5.6參數列表
| 參數名稱 | 參數類型 | 是否需要重啟數據庫 |
|---|---|---|
| connect_timeout | 常規參數 | 否 |
| event_scheduler | 常規參數 | 否 |
| innodb_lock_wait_timeout | 常規參數 | 否 |
| max_connections | 常規參數 | 否 |
| net_read_timeout | 常規參數 | 否 |
| net_write_timeout | 常規參數 | 否 |
| explicit_defaults_for_timestamp | 常規參數 | 是 |
| innodb_flush_log_at_trx_commit | 常規參數 | 否 |
| max_allowed_packet | 常規參數 | 否 |
| tx_isolation | 常規參數 | 否 |
| character_set_client | 常規參數 | 否 |
| character_set_connection | 常規參數 | 否 |
| collation_connection | 常規參數 | 否 |
| character_set_results | 常規參數 | 否 |
| collation_server | 常規參數 | 否 |
| binlog_cache_size | 性能參數 | 否 |
| binlog_stmt_cache_size | 性能參數 | 否 |
| bulk_insert_buffer_size | 性能參數 | 否 |
| innodb_buffer_pool_size | 性能參數 | 是 |
| key_buffer_size | 性能參數 | 否 |
| long_query_time | 性能參數 | 否 |
| query_cache_type | 性能參數 | 是 |
| read_buffer_size | 性能參數 | 否 |
| read_rnd_buffer_size | 性能參數 | 否 |
| sort_buffer_size | 性能參數 | 否 |
| sync_binlog | 性能參數 | 否 |
MySQL 5.7版本
表 MySQL5.7參數列表
| 參數名稱 | 參數類型 | 是否需要重啟數據庫 |
|---|---|---|
| connect_timeout | 常規參數 | 否 |
| event_scheduler | 常規參數 | 否 |
| innodb_lock_wait_timeout | 常規參數 | 否 |
| max_connections | 常規參數 | 否 |
| net_read_timeout | 常規參數 | 否 |
| net_write_timeout | 常規參數 | 否 |
| explicit_defaults_for_timestamp | 常規參數 | 否 |
| innodb_flush_log_at_trx_commit | 常規參數 | 否 |
| max_allowed_packet | 常規參數 | 否 |
| tx_isolation | 常規參數 | 否 |
| character_set_client | 常規參數 | 否 |
| character_set_connection | 常規參數 | 否 |
| collation_connection | 常規參數 | 否 |
| character_set_results | 常規參數 | 否 |
| collation_server | 常規參數 | 否 |
| binlog_cache_size | 性能參數 | 否 |
| binlog_stmt_cache_size | 性能參數 | 否 |
| bulk_insert_buffer_size | 性能參數 | 否 |
| innodb_buffer_pool_size | 性能參數 | 否 |
| key_buffer_size | 性能參數 | 否 |
| long_query_time | 性能參數 | 否 |
| query_cache_type | 性能參數 | 否 |
| read_buffer_size | 性能參數 | 否 |
| read_rnd_buffer_size | 性能參數 | 否 |
| sort_buffer_size | 性能參數 | 否 |
| sync_binlog | 性能參數 | 否 |
說明
對于上述參數“innodb_buffer_pool_size”,參數對比功能對應用到目標數據庫的值做了內控,最大不會超過目標數據庫總內存的70%。所以有時候是無法完全和源數據庫該參數取值一致,這是為了避免目標數據庫設置過大,而導致數據庫無法啟動,如果您覺得上述最大值偏小,可以在數據庫中通過執行命令手動設置更大的值。