Skip to content

Commit c8cdf4a

Browse files
committed
Fix SQL syntax for MySQL 8.0.
'GRANT ... REQUIRE SSL' was deprecated in MySQL 5.7.6 and removed in MySQL 8.0. Instead of creating multiple init.sql scripts, we use opt-in syntax so only the latest servers will require SSL for this user account.
1 parent eed3847 commit c8cdf4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/server/init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CREATE USER 'mysqltest'@'%' IDENTIFIED BY 'test;key=\"val'; GRANT ALL ON *.* TO mysqltest;
22
CREATE USER 'no_password'@'localhost';
33
CREATE USER 'no_password'@'172.17.0.1';
4-
CREATE USER 'ssltest'@'%' IDENTIFIED BY 'test'; GRANT ALL PRIVILEGES ON *.* TO 'ssltest'@'%' REQUIRE SSL;
4+
CREATE USER 'ssltest'@'%' IDENTIFIED BY 'test' /*!50706 REQUIRE SSL */; GRANT ALL PRIVILEGES ON *.* TO 'ssltest'@'%';
55
SET GLOBAL max_allowed_packet=104857600;
66

0 commit comments

Comments
 (0)