Skip to content

Commit 7e8fa59

Browse files
committed
enable general log for mariadb
1 parent 1c26b34 commit 7e8fa59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/docker-dev/sql/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ COPY phpmyadmin-apache.conf /etc/apache2/sites-available/phpmyadmin.conf
2828
RUN a2dissite 000-default
2929
RUN a2ensite phpmyadmin
3030
RUN echo "ServerName 127.0.0.1" >> /etc/apache2/apache2.conf
31+
RUN echo "general_log_file = /var/log/mysql/mysql.log" >> /etc/mysql/mariadb.conf.d/50-server.cnf
32+
RUN echo "general_log = 1" >> /etc/mysql/mariadb.conf.d/50-server.cnf
33+
RUN mkdir -p /var/log/mysql/
3134

3235
EXPOSE 80
3336
EXPOSE 3306

0 commit comments

Comments
 (0)