failed to mysql database

B

boyScout

Hello guys, i'm trying to connect to a mysql database and i get this
error:

java.lang.ClassNotfoundException:com.mysql.jdbc.Driver

I've downloaded the mysql driver called mysql-connector-java-5.1.6-bin
and the driver directory is in the my CLASSPATH but still have the
same exception. What should i do? Thank you
 
B

boyScout

I've tried to do what you suggested me but still it don't work, i'm
using easyphp and i was tring to connect to its mysql from a simple
java application to see how it will work, i've been using msaccess
database and i want to immigrate to mysql when i'm using java. And i
was tring for the first time to connect to mysql using java. However
i've placed the bin/ directory of java in the CLASSPATH but nothing,
same message.
 
A

Arne Vajhøj

boyScout said:
Hello guys, i'm trying to connect to a mysql database and i get this
error:

java.lang.ClassNotfoundException:com.mysql.jdbc.Driver

I've downloaded the mysql driver called mysql-connector-java-5.1.6-bin
and the driver directory is in the my CLASSPATH but still have the
same exception. What should i do? Thank you

What exactly is in your classpath ?

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top