diff --git a/class/core/config_api.py b/class/core/config_api.py index 5c5b49dd5..d5f928285 100755 --- a/class/core/config_api.py +++ b/class/core/config_api.py @@ -17,7 +17,7 @@ class config_api: # 进行中. # 兼容主流Linux系统 - __version = '0.8.6.13' + __version = '0.8.6.14' def __init__(self): pass diff --git a/plugins/mysql/conf/my.cnf b/plugins/mysql/conf/my.cnf index 369e55b28..6f1f1e278 100644 --- a/plugins/mysql/conf/my.cnf +++ b/plugins/mysql/conf/my.cnf @@ -15,6 +15,7 @@ log-error = {$SERVER_APP_PATH}/data/error.log default_storage_engine = MyISAM key_buffer_size = 8M max_allowed_packet = 100M + table_open_cache = 32 sort_buffer_size = 256K net_buffer_length = 4K @@ -30,8 +31,8 @@ max_connections = 500 max_connect_errors = 100 open_files_limit = 65535 +skip_name_resolve = 1 #skip-networking -#skip-name-resolve #skip-external-locking #loose-skip-innodb #skip-grant-tables @@ -73,7 +74,7 @@ innodb_buffer_pool_size = 16M innodb_additional_mem_pool_size = 2M innodb_log_file_size = 5M innodb_log_buffer_size = 8M -innodb_flush_log_at_trx_commit = 1 +innodb_flush_log_at_trx_commit = 2 innodb_lock_wait_timeout = 120 innodb_max_dirty_pages_pct = 90 innodb_read_io_threads = 1 diff --git a/plugins/mysql/conf/my5.7.cnf b/plugins/mysql/conf/my5.7.cnf index 5053013b6..78e9ce773 100644 --- a/plugins/mysql/conf/my5.7.cnf +++ b/plugins/mysql/conf/my5.7.cnf @@ -13,7 +13,6 @@ socket = {$SERVER_APP_PATH}/mysql.sock basedir = {$SERVER_APP_PATH} datadir = {$SERVER_APP_PATH}/data log-error = {$SERVER_APP_PATH}/data/error.log -default_storage_engine = MyISAM key_buffer_size = 8M table_open_cache = 32 @@ -32,11 +31,11 @@ max_connect_errors = 100 open_files_limit = 2560 max_allowed_packet = 128M +skip_name_resolve = 1 +#skip-networking #skip-external-locking -#skip-grant-tables #loose-skip-innodb -#skip-networking -#skip-name-resolve +#skip-grant-tables skip-ssl log-bin=mysql-bin @@ -44,8 +43,11 @@ binlog_format=mixed server-id = 1 slow_query_log=1 slow-query-log-file={$SERVER_APP_PATH}/data/mysql-slow.log -long_query_time=3 -#log_queries_not_using_indexes=on +long_query_time=10 +log_queries_not_using_indexes=1 +log_slow_admin_statements=1 +log_slow_slave_statements=1 +expire_logs_days=30 relay-log=mdserver relay-log-index=mdserver @@ -72,12 +74,13 @@ innodb_log_group_home_dir = {$SERVER_APP_PATH}/data innodb_buffer_pool_size = 16M innodb_log_file_size = 5M innodb_log_buffer_size = 8M -innodb_flush_log_at_trx_commit = 1 +innodb_flush_log_at_trx_commit = 2 innodb_lock_wait_timeout = 120 innodb_max_dirty_pages_pct = 90 innodb_read_io_threads = 1 innodb_write_io_threads = 1 -innodb_file_per_table=1 +innodb_file_per_table = 1 +innodb_large_prefix = 1 secure-file-priv={$SERVER_APP_PATH}/tmp diff --git a/plugins/mysql/conf/my8.0.cnf b/plugins/mysql/conf/my8.0.cnf index e1e82a44a..8668373de 100644 --- a/plugins/mysql/conf/my8.0.cnf +++ b/plugins/mysql/conf/my8.0.cnf @@ -14,7 +14,6 @@ socket = {$SERVER_APP_PATH}/mysql.sock basedir = {$SERVER_APP_PATH} datadir = {$SERVER_APP_PATH}/data log-error = {$SERVER_APP_PATH}/data/error.log -default_storage_engine = MyISAM key_buffer_size = 8M table_open_cache = 32 @@ -33,11 +32,11 @@ max_connect_errors = 100 open_files_limit = 2560 max_allowed_packet = 128M +skip_name_resolve = 1 +#skip-networking #skip-external-locking -#skip-grant-tables #loose-skip-innodb -#skip-networking -#skip-name-resolve +#skip-grant-tables skip-ssl @@ -46,8 +45,11 @@ binlog_format=mixed server-id = 1 slow_query_log=1 slow-query-log-file={$SERVER_APP_PATH}/data/mysql-slow.log -long_query_time=3 -#log_queries_not_using_indexes=on +long_query_time=10 +log_queries_not_using_indexes=1 +log_slow_admin_statements=1 +log_slow_slave_statements=1 +expire_logs_days=30 relay-log=mdserver relay-log-index=mdserver @@ -74,13 +76,13 @@ innodb_log_group_home_dir = {$SERVER_APP_PATH}/data innodb_buffer_pool_size = 16M innodb_log_file_size = 5M innodb_log_buffer_size = 8M -innodb_flush_log_at_trx_commit = 1 +innodb_flush_log_at_trx_commit = 2 innodb_lock_wait_timeout = 120 innodb_max_dirty_pages_pct = 90 innodb_read_io_threads = 1 innodb_write_io_threads = 1 innodb_file_per_table=1 -binlog_expire_logs_seconds=2592000 +innodb_large_prefix = 1 secure-file-priv={$SERVER_APP_PATH}/tmp