Skip to content

Commit 36775c1

Browse files
ZacBlancotdcmeehan
authored andcommitted
Allow starting as root user
This change sets the mysql --user flag to Java's user.name property which should allow this library to be more flexible when used within containers that use the root user
1 parent 5733e95 commit 36775c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: testing-mysql-server-8/src/main/java/com/facebook/presto/testing/mysql/EmbeddedMySql8.java

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public List<String> getStartArguments()
4242
{
4343
return ImmutableList.of(
4444
"--no-defaults",
45+
"--user=" + System.getProperty("user.name"),
4546
"--skip-mysqlx",
4647
"--default-time-zone=+00:00",
4748
"--innodb-flush-method=nosync",

0 commit comments

Comments
 (0)