Skip to content

Commit 0bb9e65

Browse files
committed
add my.cnf mysql config
1 parent f14107c commit 0bb9e65

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

my.cnf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[mysqld]
2+
datadir=/mnt/ssd/mysql
3+
socket=/var/lib/mysql/mysql.sock
4+
user=mysql
5+
# Disabling symbolic-links is recommended to prevent assorted security risks
6+
symbolic-links=0
7+
8+
open-files-limit=1024
9+
innodb_buffer_pool_size=11776MB
10+
innodb_doublewrite=0
11+
innodb_flush_log_at_trx_commit=0
12+
innodb_lock_wait_timeout=10
13+
innodb_log_file_size=512MB
14+
table_cache=200
15+
max_connections=50
16+
sort_buffer_size=262136
17+
innodb_support_xa=0
18+
19+
tmp_table_size=64MB
20+
max_heap_table_size=64MB
21+
innodb_file_per_table=1
22+
23+
bind-address=127.0.0.1
24+
25+
[mysqld_safe]
26+
log-error=/var/log/mysqld.log
27+
pid-file=/var/run/mysqld/mysqld.pid

0 commit comments

Comments
 (0)