Skip to content

Commit

Permalink
Raise the nmax_allowed_packet to 64M
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Dec 17, 2024
1 parent a9e3586 commit d55903d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions db/mariadb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ ARG MARIADB_VERSION=10.6

FROM mariadb:${MARIADB_VERSION} AS base

ARG DRUPAL_CONF="/etc/mysql/conf.d/drupal.cnf"

ENV KIND=druid-docker-image \
MYSQL_DATABASE=drupal \
MYSQL_USER=drupal \
MYSQL_PASSWORD=drupal \
MYSQL_ROOT_PASSWORD=drupal

RUN <<EOF
printf '[mysqld]\nmax_allowed_packet=64M' >> ${DRUPAL_CONF}
cat ${DRUPAL_CONF}
EOF
2 changes: 1 addition & 1 deletion db/mysql/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ ENV KIND=druid-docker-image \
MYSQL_ROOT_PASSWORD=drupal

RUN <<EOF
printf '[mysqld]\nmax_allowed_packet=16M' >> ${DRUPAL_CONF}
printf '[mysqld]\nmax_allowed_packet=64M' >> ${DRUPAL_CONF}
cat ${DRUPAL_CONF}
EOF

0 comments on commit d55903d

Please sign in to comment.