mirror of
https://github.com/elyby/accounts.git
synced 2024-12-23 22:00:06 +05:30
Fix MariaDB performance schema installer configuration
This commit is contained in:
parent
d58c245ecf
commit
02a7d3815d
@ -110,6 +110,9 @@ RUN set -ex \
|
|||||||
&& sed -i -e "s/@@global.server_uuid/@@global.server_id/g" gen/*.sql \
|
&& 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/@@master_info_repository/NULL/g" gen/*.sql \
|
||||||
&& sed -i -e "s/@@relay_log_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/ \
|
&& mv gen/*.sql /docker-entrypoint-initdb.d/ \
|
||||||
&& cd / \
|
&& cd / \
|
||||||
&& rm -rf /mysql-sys \
|
&& rm -rf /mysql-sys \
|
||||||
|
Loading…
Reference in New Issue
Block a user