Driver not found for mariadb database container #4611
Unanswered
CarolinaPonceRodriguez
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @CarolinaPonceRodriguez, this looks as if you don't have the MariaDB JDBC driver on your classpath.
I also converted this into a GitHub discussion, since this is more like a question and not really an issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm implementing testcontainers in it's version 1.16.2 with mariadb.
This is the dependency:
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mariadb</artifactId>
<version>1.16.2</version>
<scope>test</scope>
</dependency>
This is the portion of code:
mariaDBContainer = new MariaDBContainer<>("mariadb")
.withDatabaseName("testDatabase")
.withUsername("root")
.withPassword("");
mariaDBContainer.start();
And this is the stacktrace, it says that no driver org.mariadb.jdbc.Driver can be found. I tried with other databases, like mysql and there's no problem at all. It's convenient for me to use mariadb, is there a way to fix this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions