Adapt MariaDB config for 10.3.13
This commit is contained in:
parent
4129eb85c3
commit
aaf2611b82
@ -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
|
||||
|
@ -12,7 +12,7 @@ myisam_sort_buffer_size = 8M
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
max_allowed_packet = 16M
|
||||
max_allowed_packet = 1M
|
||||
|
||||
[mysql]
|
||||
no-auto-rehash
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user