Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More problems with connecting to MySQL

Status
Not open for further replies.

keegank

Programmer
Aug 12, 2003
10
GB
Sorry for posting again.

I am trying to get my tomcat to talk to MySQL. I have downloaded the connector and from the documentation it seems I need to copy the file

mysql-connector-java-3.0.8-stable-bin

somewhere. But I am not sure where. Can you tell me where I need to put this file to be able to connect to the DB and also whether tere is anything else I need to do.

Sorry for being a pain but I am panicking massively.

Thanks

Andy
 
where you want to put it depends on who you you want to have access to it. If you put the jar file in {tomcat directory}\common\lib it will be
available to all your web apps. Theres no need to play around with your
CLASSPATH variable. otherwise put it in web-inf\lib
 
OK thanks. One more thing - if I have the .jar file in the /common/lib directory and my app still cannot connect to the db then are you saying it must be to do with my app and not the connector?

Andy
 
That's my guess...cause normally all apps should be able to access it there....check ur path settings though...
libaax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top