#Driver not working

1 messages · Page 1 of 1 (latest)

azure garnet
#

Hellow people, iv just finished a course on java and want to put my skill to test. Iv made a simple code where i just want to make a managment like code. But in runing into a error when runing my code. I get a failed conect attemp to my db. Its a mariadb and im runing evrything in ubuntu 20.04.2 LTS in eclipse.

tawny solsticeBOT
#

<@&987246584574140416> please have a look, thanks.

hollow pelican
#

Do you have an appropriate driver dependency in the pom.xml?

Something like this...

<dependency>
    <groupId>org.mariadb.jdbc</groupId>
    <artifactId>mariadb-java-client</artifactId>
    <version>3.5.2</version>
</dependency>
calm vigil
#

Also never. Never, never, never. Never store your credentials in the code. Your code is basically plain-text that any attacker could see.

azure garnet
azure garnet
#

I dont know what happened but i change to intellij and it worked lol