my.cnf

[client] socket=/var/lib/mysql/mysql.sock default-character-set = utf8mb4 [mysql] default-character-set = utf8mb4 [mysqld] character-set-client-handshake = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci server-id=20 datadir=/home/data/mysql socket=/var/lib/mysql/mysql.sock log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid log-bin log_slave_updates expire_logs_days=7 log_timestamps = SYSTEM thread_handling = pool-of-threads innodb_buffer_pool_size = 20G innodb_flush_log_at_trx_commit = 1 sync_binlog = 1 innodb_file_per_table = 1 innodb_log_file_size = 256M innodb_log_files_in_group = 2 max_connections = 1000 max_connect_errors = 100000 open_files_limit = 10000 innodb_open_files = 10000 table_open_cache = 10000 table_definition_cache = 10000 key_buffer_size = 32M query_cache_type = 0 query_cache_size = 0 log-bin-trust-function-creators=1 # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 log_output=file slow_query_log=ON long_query_time=3 log_slow_rate_limit=100 log_slow_rate_type=query log_slow_verbosity=full log_slow_admin_statements=ON log_slow_slave_statements=ON slow_query_log_always_write_time=1 slow_query_log_use_global_control=all innodb_monitor_enable=all userstat=1 #init_connect='insert into db_monitor.accesslog(thread_id,log_time,localname,matchname) values(connection_id(),now(),user(),current_user());'
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章