User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 402,454 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,018 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums

Accessing Mysql with Servlet.....

Join Date: Mar 2006
Posts: 20
Reputation: muthumari is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
muthumari muthumari is offline Offline
Newbie Poster

Help Accessing Mysql with Servlet.....

  #1  
Aug 17th, 2006
Hi.....


How to access the MySql using servlet....
Now am using Mysql 5.0 & MyOdbc 3.51
What type of connector to be used?...
We used the following syntax..is it correct?or not?

Class.forName("org.gjt.mm.mysql.Driver");
Connection cn=DriverManager.getConnection("jdbc:mysql://192.168.1.38:3306/suba","root","erp");

Whenever i execute this program i got the error like this
ClassNotFoundException: org.gjt.mm.mysql.Driver
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 3:18 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC