| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- # 此文件只给 docker 开发套件。165(123.60.180.165)的生效文件是 /etc/my.cnf,
- # 禁止把本文件 scp 上去覆盖现场——现场还跑着 Gogs / SQL Server / 旧 Business,
- # 且本文件的 max_connections=1000、无缓冲池显式值,与现场护栏(4G / 500)不一致。
- [client]
- default-character-set=utf8
-
- [mysqld]
- character-set-server=utf8
- log-bin=mysql-bin
- server-id=1
- pid-file = /var/run/mysqld/mysqld.pid
- socket = /var/run/mysqld/mysqld.sock
- datadir = /var/lib/mysql
- sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
- symbolic-links=0
- secure_file_priv =
- wait_timeout=86400
- interactive_timeout=86400
- default-time_zone = '+8:00'
- skip-external-locking
- skip-name-resolve
- open_files_limit = 10240
- max_connections = 1000
- max_connect_errors = 6000
- table_open_cache = 800
- max_allowed_packet = 40m
- sort_buffer_size = 2M
- join_buffer_size = 1M
- thread_cache_size = 32
- query_cache_size = 64M
- transaction_isolation = READ-COMMITTED
- tmp_table_size = 128M
- max_heap_table_size = 128M
- log-bin = mysql-bin
- sync-binlog = 1
- binlog_format = ROW
- binlog_cache_size = 1M
- key_buffer_size = 128M
- read_buffer_size = 2M
- read_rnd_buffer_size = 4M
- bulk_insert_buffer_size = 64M
- lower_case_table_names = 1
- explicit_defaults_for_timestamp=true
- skip_name_resolve = ON
- event_scheduler = ON
- log_bin_trust_function_creators = 1
- innodb_buffer_pool_size = 512M
- innodb_flush_log_at_trx_commit = 1
- innodb_file_per_table = 1
- innodb_log_buffer_size = 4M
- innodb_log_file_size = 256M
- innodb_max_dirty_pages_pct = 90
- innodb_read_io_threads = 4
- innodb_write_io_threads = 4
|