LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-07-2006, 01:36 PM   #1
vishwas_vasisht
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
mysql-connector 3.1.x..Database is not getting connected


I am not able to connect to the MySql database using the Connector/J version 3.1.10 (not with any of the 3.1 and further version). But the connection is possible with the 3.0.x version. Since 3.0.x does not come up with procedure and transaction I cannot use it.

The error I get is as follows (for using the 3.1.10 connector)
Cannot connect to database server java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

I have tried explicitly giving the classpath.. i.e., java -classpath <path to the jar file mysql-connector-java-3.1.10-bin.jar> <class name>

like java -c ~/mysql/mysql-connector-java-3.1.10/mysql-connector-java-3.1.10-bin.jar Connect

This also does not work.

Can any one suggest me a solution plz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql and mysql java connector, connection refused arubin Slackware 3 03-29-2008 02:41 AM
how to specify the database connector like odbc jdbc for connecting to an msaccess msalimane Mandriva 1 12-08-2004 07:03 AM
Where to put mysql-connector-java folder dukehazord Linux - General 1 09-10-2004 12:30 PM
Writing an app that uses a mysql database without installing mysql server? QtCoder Programming 4 08-09-2004 03:43 PM
MYSQL help - mysql database missing eloviyandhi Linux - Software 1 03-20-2004 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration