0

I have a problem with JDBC, I try to connect my java project to a MySQL database, and I get this error:

No suitable driver found for jdbc:mysql://localhost::3306/gestionpersonnel?serverTimezone=UTC

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197

1 Answers1

1

you need to have the mysql driver (jar libs) on your classpath -

see https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-installing.html and select based on you setup

PrasadU
  • 2,154
  • 1
  • 9
  • 10
  • thank you , I resolved this problem and now i have another one :com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure – user13238480 Nov 15 '20 at 17:17
  • yes , problem solved ! please telle me i am using java/javafx to build a desktop app can I just use xampp for my database – user13238480 Nov 15 '20 at 17:28