Adapt MariaDB config for 10.3.13

This commit is contained in:
Disassembler 2019-02-28 16:06:03 +01:00
parent 4129eb85c3
commit aaf2611b82
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
3 changed files with 3 additions and 5 deletions

View File

@ -6,10 +6,8 @@ cd $(realpath $(dirname "${0}"))/install
# Create MariaDB instance
mkdir -p /srv/mariadb/conf /srv/mariadb/data
chown 3306:3306 /srv/mariadb/data
lxc-execute mariadb -- mysql_install_db --user=mysql --datadir=/var/lib/mysql --auth-root-authentication-method=socket --skip-test-db
# Configure MariaDB
cp srv/mariadb/conf/my.cnf /srv/mariadb/conf/my.cnf
lxc-execute mariadb -- mysql_install_db --user=mysql --datadir=/var/lib/mysql --auth-root-authentication-method=socket --skip-test-db
# Enable query logging. Only if the DEBUG environment variable is set
if [ ${DEBUG:-0} -eq 1 ]; then

View File

@ -12,7 +12,7 @@ myisam_sort_buffer_size = 8M
[mysqldump]
quick
max_allowed_packet = 16M
max_allowed_packet = 1M
[mysql]
no-auto-rehash

View File

@ -15,7 +15,7 @@ RUN EOF
chown mysql:mysql /run/mysqld
EOF
MOUNT DIR /srv/mariadb/conf etc/mysql
MOUNT FILE /srv/mariadb/conf/my.cnf etc/my.cnf
MOUNT DIR /srv/mariadb/data var/lib/mysql
USER 3306 3306