Skip to content

Instantly share code, notes, and snippets.

@mbnoimi mbnoimi/my.cnf
Last active May 15, 2018

Embed
What would you like to do?
/opt/mariadb-data/my.cnf
[client]
#password = your_password
port = 3308
socket = /opt/mariadb-data/mariadb.sock
[mysqld]
port = 3308
socket = /opt/mariadb-data/mariadb.sock
user = mariadb
datadir = /opt/mariadb-data
basedir = /opt/mariadb
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
log-error=/opt/mariadb-data/mariadb.err
general_log = 1
general_log_file=/opt/mariadb-data/mariadb.log
log-bin=mysql-bin
binlog_format=mixed
server-id = 101
pid-file = /opt/mariadb-data/mariadb.pid
tmpdir = /opt/mariadb-data/tmp
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[mysqladmin]
port = 3308
socket = /opt/mariadb-data/mariadb.sock
user = mariadb
#datadir = /opt/mariadb-data
#basedir = /opt/mariadb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.