Home » Open Source » MySQL » How to connect mySQL by using JDBC?
How to connect mySQL by using JDBC? [message #91639] Sat, 21 December 2002 22:49 Go to next message
stupid student
Messages: 1
Registered: December 2002
Junior Member
i cannot connect to the database(mysql) by using JDBC.

I hava set the classpath as

Inside my java program i wrote these statement to
make a connection to the database:

import java.sql.*;
public class CreateTable{
public static void main (String args[[]]) {
Connection con=null;

System.out.println("JDBC driver loaded");

It give me a CreateTable.class after compile
But it cannot create any table on the database.

Is my setting wrong?
How can i connect to the database properly?
Thank you very much.
Re: How to connect mySQL by using JDBC? [message #91777 is a reply to message #91639] Wed, 12 February 2003 08:53 Go to previous messageGo to next message
Munawar al kabir
Messages: 1
Registered: February 2003
Junior Member
Hi ,
How is doing .....did you receive any correct reply for that please? If yes , could you please send me that information?
I'm also working on "How to connect the MySQL using JAVA"

thanking you

Re: How to connect mySQL by using JDBC? [message #92047 is a reply to message #91639] Wed, 18 February 2004 02:34 Go to previous message
Messages: 1
Registered: February 2004
Junior Member
is org.gjt.mm.mysql.Driver
not org.git.mm.mysql.Driver
Previous Topic: Oracle & MySql
Next Topic: oracle to mysql conversion and vice versa
Goto Forum:

Current Time: Thu Nov 26 12:08:51 CST 2015

Total time taken to generate the page: 0.13520 seconds