Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDBC connection problem to apache tomcat 5.0.27

843859Jul 7 2008 — edited Jan 20 2015
Hi, i`m having a database connection problem with my apache tomcat.

I`m attempting to link my servlet to a database in MySQL . However , it always shows an exception.


Exception in init(): Unable to establish connection to database Elearning

I have tried anything that i know of and it still shows the same error.

I am currently using MySQL server 5.0 , mysql-connector-java-3.1.12-bin.jar .

The strange thing is an instance of the jdbc driver is created but it can`t connect me to the database.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2008
Added on Jul 7 2008
10 comments
128 views