[mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 pid-file= /var/run/mysqld/mysqld.pid [mysqld] # # * Basic Settings # user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr/ datadir = /mnt/data/mysql/ tmpdir = /mnt/logs/mysql-tmp/ #language = /usr/share/mysql/english skip-external-locking character-set-server = utf8 skip-character-set-client-handshake # # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 0.0.0.0 # # * Fine Tuning # key_buffer = 16M max_allowed_packet = 16M thread_stack = 256k thread_cache_size = 64 #max_connections = 100 #table_cache = 64 #thread_concurrency = 10 # # * Query Cache Configuration # query_cache_limit = 0 query_cache_size = 0 # # * Logging and Replication # # Both location gets rotated by the cronjob. # Be aware that this log type is a performance killer. #log = /var/log/mysql/mysql.log # # Error logging goes to syslog. This is a Debian improvement :) # # Here you can see queries with especially long duration #log_slow_queries = /var/log/mysql/mysql-slow.log #long_query_time = 2 #log-queries-not-using-indexes # # The following can be used as easy to replay backup logs or for replication. #server-id = 1 log_bin = /mnt/logs/mysql//mysql-bin # WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian! expire_logs_days = 10 max_binlog_size = 1G #binlog_do_db = include_database_name #binlog_ignore_db = include_database_name # # * InnoDB # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! # You might want to disable InnoDB to shrink the mysqld process by circa 100MB. #skip-innodb # # * Security Features # # Read the manual, too, if you want chroot! # chroot = /var/lib/mysql/ # # For generating SSL certificates I recommend the OpenSSL GUI "tinyca". # # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-key=/etc/mysql/server-key.pem wait_timeout= 120 interactive_timeout= 60 secure_auth= ON ft_min_word_len= 3 slave_net_timeout= 120 max_connect_errors= 1844674407370954751 skip-name-resolve max_binlog_files= 100 table_definition_cache= 800 innodb_flush_neighbors= 2 default-storage-engine= InnoDB innodb_autoinc_lock_mode= 2 innodb_locks_unsafe_for_binlog= 1 log-slave-updates= 1 innodb_file_per_table innodb_flush_log_at_trx_commit= 1 innodb_flush_method= O_DIRECT query_cache_type= 0 max_connections= 2000 max_user_connections= 300 table_open_cache= 10000 join_buffer_size= 48M key_buffer_size= 5G open_files_limit= 65535 innodb_buffer_pool_size= 72G innodb_io_capacity= 2500 innodb_log_file_size= 128M innodb_open_files= 16384 innodb_thread_concurrency= 48 innodb_buffer_pool_instances= 12 innodb_stats_on_metadata= 0 server-id= 171849666 binlog-format= ROW read-only report-host= db5a.domain old_passwords= 0 log-warnings= 1 log-error= /var/log/mysql/mysql.log slow_query_log= 1 slow_query_log_file= /var/log/mysql/mysql-slow.log innodb_log_group_home_dir= /mnt/data/mysql/ innodb_data_home_dir= /mnt/data/mysql/ relay_log= /mnt/logs/mysql//mysqld-relay-bin relay_log_index= /mnt/logs/mysql//mysqld-relay-bin.index relay_log_info_file= /mnt/logs/mysql//relay-log.info long_query_time= 2 skip-slave-start=true