![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
[クライアント] デフォルト -character設定= utf8mb4 ポート = PORTの ソケット = / srvの/ myPORT /実行/ にmysql.sock [mysqldを] ユーザー = mysqlの ポート = PORT 余分 -port = 1PORT character_set_server = utf8mb4 SERVER_ID = SERVER_ID ソケット = / SRV / myPORT /実行/ にmysql.sock BASEDIR =は/ opt / percona- サーバ DATADIR = / srvの/ myPORT / データ ログ -error = / srvの/ myPORT /ログ/ ALERT.LOG PID - ファイル = / srvの/ myPORT /実行/ mysql.pid log_slave_updates = 1つの ログ -bin = / SRV / myPORT /ログ/はmysql- ビン binlog_format = 行 binlog_cache_size = 2M max_binlog_cache_size = 1G 4G max_binlog_size = expire_logs_days = 7 リレー -log = / srvの/ myPORT / / relay-ログインビン リレー -log- 情報 - ファイル = / srvの/ myPORT /ログ/リレーログを。情報 リレー -log-指数= / srvの/ myPORT /ログ/ relay- log.indexの マスター - 情報 - ファイル = / srvの/ myPORT /ログ/マスター。情報 リレー -log回復= 真 の同期 -relay-対数情報 = 1を explicit_defaults_for_timestamp key_buffer_sizeは = 2M sort_buffer_size = 2M read_buffer_size = 2M read_rnd_buffer_size = 16M join_buffer_size = 2M thread_cache_size = 1024 query_cache_size = 1M query_cache_limit = 1M query_cache_min_res_unitの = 2K table_open_cacheの = 2048 open_files_limit =65535 back_log = 3000 MAX_CONNECTIONS = 4000 MAX_USER_CONNECTIONS = 2500 てmax_connect_errors = 100 のmax_allowed_packet = 512M thread_stack = 192K デフォルト -storageエンジン= INNODBの TRANSACTION_ISOLATION = READ- COMMITTED tmp_table_size = 16M max_heap_table_size = 64M bulk_insert_buffer_size = 64M long_query_time = 0.5 slow_query_log = オン slow_query_log_file = / SRV / myPORT /ログ/ slow.log スキップ -name- 解決 innodb_buffer_pool_size = 10Gの innodb_data_file_path = ibdata1とを:2G:自動拡張 innodb_file_io_threads = 24 innodb_purge_threads = 12 innodb_read_io_threads = 24 innodb_write_io_threads = 24 innodb_thread_concurrency = 24 innodb_buffer_pool_instances = 8 innodb_flush_log_at_trx_commit = 1 innodb_log_buffer_size = 16M innodb_log_file_size = 2G innodb_log_files_in_group = 2 innodb_max_dirty_pages_pct = 75 innodb_lock_wait_timeout = 50 innodb_file_per_tableを = 1 thread_handling =プール・オブ・スレッド thread_pool_idle_timeout = 180 thread_pool_max_threads = 5000 thread_pool_size = 24 thread_pool_oversubscribe = 10 thread_pool_stall_limit = 500 [mysqldumpを】 迅速 max_allow_packet = 64M [MySQLの】 なし -auto- 焼き直し [mysqlhotcopy] インタラクティブ -timeout