File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes Java/MySQL connectivity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java/MySQL connectivity" Watch "Java/MySQL connectivity" New topic

Java/MySQL connectivity

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
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

Joined: Apr 14, 2004
Posts: 10336

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.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Sutham Rojanusorn

Joined: Jul 10, 2004
Posts: 4
something about this you can find it from google
this is the simple way to do without posting to here
I agree. Here's the link:
subject: Java/MySQL connectivity
Similar Threads
newbie question on database
Is there any function like saveOrUpdate
Miliceconds + Group By (Interval of 5 Seconds)
why i can't get the whole string when rs.getString() called ?
Which Query is faster