File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java/MySQL connectivity" Watch "Java/MySQL connectivity" New topic
Author

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
Bartender

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
Greenhorn

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java/MySQL connectivity
 
Similar Threads
Which Query is faster
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 ?