# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html [mysqld] # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid local-infile=0 sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO explicit_defaults_for_timestamp = 1 skip-ssl=1 ####################################################### #performance-schema= 0 max_connections = 1000 max_user_connections = 10000 query_cache_size = 64M skip-external-locking key_buffer_size = 64M max_allowed_packet = 268435456 table_open_cache = 256 sort_buffer_size = 1024K net_buffer_length = 16K read_buffer_size = 512K read_rnd_buffer_size = 1024K myisam_sort_buffer_size = 128M innodb_file_per_table = 1 tmp_table_size = 64M max_heap_table_size = 64M thread_cache_size = 60 default-storage-engine = MyISAM innodb_buffer_pool_size = 128M wait_timeout = 60000 interactive_timeout = 60000 default-time-zone = '+03:30'