Iam new to JDBC, pls somebody help me with some instructions to install and access mysql and connect it using JDBC. I was working with PHP/MySQL and things were easy with php. Iam struggling with Java, pls help me.
A few other hints. You can get the JDBC drivers here: Connector/J 3.0. Make sure that you put the driver JAR file where your JDK/JVM can find them. To connect, you'll do something like the following:
Of course you'll have to supply the ip-address of where the database is located (you can use "localhost" if it's on the same machine), the database instance (or it can be left off), the user and password (if required). After that it's just regular ol' JDBC stuff.
Originally posted by Sam Kot: I do have MySQL installed in my computer, I want to know how to connect and what driver to download
Like Wayne said, Connector/J. As far as how to connect, if you had even glanced at the link to the JDBC tutorial I sent you, you wouldn't have had to ask the question again. We love helping people, but you need to do your part as well. Wayne is much more gracious than I am since you appearntly didn't even take advantage of the links I provided for you.