Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # MariaDB database server configuration file.
- #
- # You can copy this file 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 = /var/lib/mysql
- tmpdir = /tmp
- lc_messages_dir = /usr/share/mysql
- lc_messages = en_US
- 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
- #
- # * Fine Tuning
- #
- max_connections = 25
- connect_timeout = 5
- wait_timeout = 20
- max_allowed_packet = 16M
- thread_cache_size = 32
- sort_buffer_size = 4M
- bulk_insert_buffer_size = 16M
- tmp_table_size = 32M
- max_heap_table_size = 32M
- interactive_timeout = 300
- #
- # * MyISAM
- #
- # This replaces the startup script and checks MyISAM tables if needed
- # the first time they are touched. On error, make copy and try a repair.
- myisam_recover_options = BACKUP
- key_buffer_size = 128M
- #open-files-limit = 2000
- table_open_cache = 400
- myisam_sort_buffer_size = 512M
- concurrent_insert = 2
- read_buffer_size = 2M
- read_rnd_buffer_size = 1M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement