diff --git a/plugins/mysql/conf/my.cnf b/plugins/mysql/conf/my.cnf index 3e134f8de..883de21c8 100644 --- a/plugins/mysql/conf/my.cnf +++ b/plugins/mysql/conf/my.cnf @@ -2,6 +2,7 @@ #password = your_password port = 3306 socket = /tmp/mysql.sock +default-character-set=utf8 [mysqld] port = 3306 @@ -12,7 +13,7 @@ default_storage_engine = MyISAM #skip-external-locking #loose-skip-innodb key_buffer_size = 8M -max_allowed_packet = 100G +max_allowed_packet = 100M table_open_cache = 32 sort_buffer_size = 256K net_buffer_length = 4K @@ -22,6 +23,7 @@ myisam_sort_buffer_size = 4M thread_cache_size = 4 query_cache_size = 4M tmp_table_size = 8M +default-character-set=utf8 #skip-networking #skip-name-resolve diff --git a/plugins/mysql/conf/my8.0.cnf b/plugins/mysql/conf/my8.0.cnf new file mode 100644 index 000000000..c30ab75c5 --- /dev/null +++ b/plugins/mysql/conf/my8.0.cnf @@ -0,0 +1,71 @@ +[client] +#password = your_password +port = 3306 +socket = /tmp/mysql.sock +default-character-set = UTF8MB4 + +[mysqld] +port = 3306 +socket = /tmp/mysql.sock +datadir = {$SERVER_APP_PATH}/data +log-error = {$SERVER_APP_PATH}/data/error.log +default_storage_engine = MyISAM +#skip-external-locking +#loose-skip-innodb +key_buffer_size = 8M +table_open_cache = 32 +sort_buffer_size = 256K +net_buffer_length = 4K +read_buffer_size = 128K +read_rnd_buffer_size = 256K +myisam_sort_buffer_size = 4M +thread_cache_size = 4 +lower_case_table_names=2 +tmp_table_size = 8M +character-set-server = UTF8MB4 + +#skip-networking +#skip-name-resolve +max_connections = 500 +max_connect_errors = 100 +open_files_limit = 2560 +max_allowed_packet = 128M + +log-bin=mysql-bin +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 + +default_storage_engine = InnoDB +innodb_data_home_dir = {$SERVER_APP_PATH}/data +innodb_data_file_path = ibdata1:10M:autoextend +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_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 + +[mysqldump] +quick + + +[mysql] +no-auto-rehash + +[myisamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[mysqlhotcopy] +interactive-timeout \ No newline at end of file