From 02a7d3815d8a69931fbf1ec8fae1066bcdfe0f4d Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Mon, 13 May 2019 14:15:32 +0300 Subject: [PATCH] Fix MariaDB performance schema installer configuration --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9946b37..0c137c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -110,6 +110,9 @@ RUN set -ex \ && sed -i -e "s/@@global.server_uuid/@@global.server_id/g" gen/*.sql \ && sed -i -e "s/@@master_info_repository/NULL/g" gen/*.sql \ && sed -i -e "s/@@relay_log_info_repository/NULL/g" gen/*.sql \ + # Wrap each command, that contains more than one ; terminator into DELIMITER + # and replace the last one to avoid mysql errors + && sed -i -E 's/^(.+;.+);$/DELIMITER $$\n\n\1$$\n\nDELIMITER ;/g' gen/*.sql \ && mv gen/*.sql /docker-entrypoint-initdb.d/ \ && cd / \ && rm -rf /mysql-sys \