-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MySQLContainer unable to run MySQL 8 #736
Comments
Thanks @StefanHufschmidt - I originally tried to start the container manually and connect to it using Hopefully this ticket can still be used to provide the solution within Testcontainers that would make it work out-of-the-box. |
I read in https://dev.mysql.com/doc/connectors/en/connector-j-reference-configuration-properties.html that you could set the |
I'm also trying to run TC with MySQL 8.x. I tried adding the"--default-authentication-plugin=mysql_native_password" config but it just hangs till a timeout occurs. In the logs there's a Has anyone succeeded in running MySQL 8.x with MySQLContainer? |
FWIW this my log:
|
I did some more debugging last weekend, I am using Spring Boot and apparently if you add any property to your jdbc url ( |
Note: I do use some property to the JDBC URL ( |
Amend default MySQL connection parameters for MySQL 5 - 8 compatibility Fixes #736
Cool thanks @rnorth ! Will tests as soon as the next TC version is released! |
I'm having trouble getting MySQL 8 (namely
mysql:8.0.11
image) to run with Testcontainers. Container startup fails due to timeout, with the following output:Note:
I've tried overriding
MySQLContainer#getDriverClassName
to address the JDBC driver warning, but that didn't affect anything.This can be reproduced with a very simple project using:
Environment details:
$ uname -srvmpio Linux 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ java -version openjdk version "1.8.0_172" OpenJDK Runtime Environment (Zulu 8.30.0.1-linux64) (build 1.8.0_172-b01) OpenJDK 64-Bit Server VM (Zulu 8.30.0.1-linux64) (build 25.172-b01, mixed mode)
The text was updated successfully, but these errors were encountered: