forked from neuralsignal/loris
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy.cnf
More file actions
103 lines (86 loc) · 3.16 KB
/
my.cnf
File metadata and controls
103 lines (86 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# The MySQL Community Server configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Certificates to authenticate through SSL in MySQL CLI client.
ssl-cert=/mysql_keys/client-cert.pem
ssl-key=/mysql_keys/client-key.pem
[mysqld_safe]
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
skip-host-cache
skip-name-resolve
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
explicit_defaults_for_timestamp
# configure mode for MySQL appropriate for use with DataJoint
sql-mode="STRICT_ALL_TABLES,NO_ENGINE_SUBSTITUTION"
# Accommodate large data packets
max_allowed_packet=512M
innodb_log_file_size=2G
innodb_buffer_pool_size=4G
innodb_log_buffer_size=8M
innodb_file_per_table=1
innodb_stats_on_metadata=0
# Longer timeouts for datajoint populate jobs, workgroup lan interactivity
wait_timeout=86400 # leave open over weekend
interactive_timeout=86400 # leave open over weekend
net_read_timeout=7200 # long make() calls (1H/rec)
net_write_timeout=7200 # long make() calls (1H/rec)
lock_wait_timeout=1200 # longer timeout for make() contention
innodb_lock_wait_timeout=1200 # longer timeout for make() contention
# set character set to utf8
character-set-server = utf8
collation-server = utf8_unicode_ci
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. Turn
# ON to enable MySQL to ONLY allow SSL connections.
#bind-address = 0.0.0.0
# Turn ON to enable MySQL to ONLY allow SSL connections.
#require_secure_transport = ON
# Disable SSL
#ssl = 0
# Enable SSL
ssl = 1
ssl-cipher=DHE-RSA-AES256-SHA
ssl-ca=/mysql_keys/ca.pem
ssl-cert=/mysql_keys/server-cert.pem
ssl-key=/mysql_keys/server-key.pem
default_authentication_plugin=mysql_native_password
#log-error = /var/log/mysql/error.log
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Limits directories from which MySQL can load data from. Definition
# required for MySQL8.
secure_file_priv=NULL
# * 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/