# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL. # The following options will be passed to all MySQL clients [client] port = 3306 socket = /tmp/mysql.sock # The MySQL server [mysqld] table_open_cache = 64 max_allowed_packet = 16M myisam_repair_threads = 1 myisam_sort_buffer_size = 8M # File Path pid-file = /var/run/mysql/mysql.pid log-error = /var/log/mysql/error.log # 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 log-bin = /data/mysql/log/mysql-bin # These are commonly set, remove the # and set as required. # basedir = ..... # datadir = ..... # port = ..... # server_id = ..... # socket = ..... # binary logging format - mixed recommended binlog_format = mixed # required unique id between 1 and 2^32 - 1 # defaults to 1 if master-host is not set # but will not function as a master if omitted server-id = 1 # 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 key_buffer_size = 16M read_buffer_size = 2M sort_buffer_size = 2M join_buffer_size = 16M read_rnd_buffer_size = 2M # Other Switch Settings performance_schema = OFF # Recommended in standard MySQL setup sql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES [mysqldump] quick max_allowed_packet = 16M [myisamchk] read_buffer = 2M write_buffer = 2M key_buffer_size = 20M sort_buffer_size = 20M