This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java/MySQL connectivity

 
Patrick Mugabe
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I have been using JDBC mostly with Access and SQL Server.
I now want to switch to Mysql.
Can anyone assist me with the Driver loading statement (Class.forname....)
when using Mysql.
If possible just give a simple example.

Thanks in advance
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one can without knowing which driver you are using. I suggest you check the documentation that comes with which ever driver you have - they usually include example connection code.
 
Sutham Rojanusorn
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
something about this you can find it from google
this is the simple way to do without posting to here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic