#**************************************************************************************** [client] default-character-set = utf8mb4 #**************************************************************************************** # This group is not read by mysql client library, # If you use the same .cnf file for MySQL and MariaDB, # use it for MariaDB-only client options [client-mariadb] #**************************************************************************************** # this is read by the standalone daemon and embedded servers [server] bind-address = 0.0.0.0 port = 3306 character-set-server = utf8mb4 collation-server = utf8mb4_general_ci lower_case_table_names = 1 default-storage-engine = INNODB thread_cache_size = 8 max_connections = 512 max_connect_errors = 1000 max_allowed_packet = 256M query_cache_size = 16M sql-mode = "NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" #this is the Database Import And Export Configurations secure_file_priv = "" local_infile = ON net_buffer_length = 16384 #** table_cache = 256 #** tmp_table_size = 18M #*** MyISAM Specific options *** key_buffer_size = 128M myisam_max_sort_file_size = 64G myisam_sort_buffer_size = 35M #** read_buffer_size = 64K #** read_rnd_buffer_size = 256K #** sort_buffer_size = 256K #*** INNODB Specific options *** #** innodb_file_per_table = 1 innodb_buffer_pool_size = 128M innodb_flush_log_at_trx_commit = 2 #** innodb_additional_mem_pool_size = 2M #** innodb_log_buffer_size = 1M #** innodb_log_file_size = 24M #** innodb_thread_concurrency = 8 #**************************************************************************************** # 关闭加密,降低资源开销 [mariadb] aria-encrypt-tables = off encrypt-binlog = off encrypt-tmp-disk-tables = off encrypt-tmp-files = off loose-innodb-encrypt-log = off loose-innodb-encrypt-tables = off