Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # The MySQL database server configuration file.
- #
- # You can copy this to one of:
- # - "/etc/mysql/my.cnf" to set global options,
- # - "~/.my.cnf" to set user-specific options.
- #
- # One can use all long options that the program supports.
- # Run program with --help to get a list of available options and with
- # --print-defaults to see which it would actually understand and use.
- #
- # For explanations see
- # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
- # This will be passed to all mysql clients
- # It has been reported that passwords should be enclosed with ticks/quotes
- # escpecially if they contain "#" chars...
- # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
- [client]
- port = 3306
- socket = /var/run/mysqld/mysqld.sock
- # Here is entries for some specific programs
- # The following values assume you have at least 32M ram
- # This was formally known as [safe_mysqld]. Both versions are currently parsed.
- [mysqld_safe]
- socket = /var/run/mysqld/mysqld.sock
- nice = 0
- [mysqld]
- #
- # * Basic Settings
- #
- user = mysql
- pid-file = /var/run/mysqld/mysqld.pid
- socket = /var/run/mysqld/mysqld.sock
- port = 3306
- basedir = /usr
- datadir = /home/mysql
- tmpdir = /tmp
- language = /usr/share/mysql/english
- skip-external-locking
- #
- # Instead of skip-networking the default is now to listen only on
- # localhost which is more compatible and is not less secure.
- #bind-address = 127.0.0.1
- # SAFETY #
- max_allowed_packet = 16M
- max_connect_errors = 1000000
- skip_name_resolve
- sysdate_is_now = 1
- # CACHES AND LIMITS #
- tmp_table_size = 32M
- max_heap_table_size = 32M
- query_cache_type = 0
- query_cache_size = 0
- max_connections = 500
- thread_cache_size = 50
- open_files_limit = 65535
- table_definition_cache = 1024
- table_open_cache = 2048
- # INNODB #
- innodb_flush_method = O_DIRECT
- innodb_log_files_in_group = 2
- innodb_log_file_size = 128M
- innodb_flush_log_at_trx_commit = 2
- innodb_file_per_table = 1
- innodb_buffer_pool_size = 3G
- # LOGGING #
- log_error = /home/mysql/mysql-error.log
- log_queries_not_using_indexes = 1
- slow_query_log = 1
- slow_query_log_file = /home/mysql/mysql-slow.log
- [mysqldump]
- quick
- quote-names
- max_allowed_packet = 16M
- [mysql]
- #no-auto-rehash # faster start of mysql but no tab completition
- [isamchk]
- key_buffer = 16M
- #
- # * IMPORTANT: Additional settings that can override those from this file!
- # The files must end with '.cnf', otherwise they'll be ignored.
- #
- !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement