Skip to content

Commit 6bbd1fb

Browse files
committed
Use mysql 5.7 with disabled option ONLY_FULL_GROUP_BY (which causes many problem to people)
1 parent d703c82 commit 6bbd1fb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

mysql/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mysql:5.6
1+
FROM mysql:5.7
22

33
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
44

mysql/my.cnf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
55

66
[mysql]
7+
8+
[mysqld]
9+
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

0 commit comments

Comments
 (0)