How to install JDBC with mysql and use it in Java?


Can anyone tell me about how to make use of JDBC in a java application.
Please tell me in detail about the softwares i need to install and configurations that i will have to make. I am having JDK 1.6 installed on my computer and don’t have mysql. Please tell in detail about the steps that i need to follow.

2 Responses to “How to install JDBC with mysql and use it in Java?”

  • ?Neeraj Yadav?:

    You need to have
    mysql-connector-java-5.0.8.jar

    get the same
    http://dev.mysql.com/downloads/connector/j/5.0.html

    Hope this helps
    Cheers:)

  • Giuseppe M:

    Download mysql community server from:
    http://dev.mysql.com/downloads/mysql/5.1.html#downloads

    choosing the right operating system.

    Install it.

    Then download connector j (i.e the mysql jdbc driver)
    http://dev.mysql.com/downloads/connector/j/5.1.html

    Put the jar in the classpath.
    You are ready to develop java application that interacts with mysql.

    see also jdbc connector j documentation
    http://dev.mysql.com/doc/refman/5.1/en/connector-j.html

Leave a Reply