hi all,
I am trying to talk to mysql(4.0.15-nt) database on my local machine(OS Win XP Home) from a
java program.
In oracle there is something like this right ?
DriverManager.registerDriver(new OracleDriver())
I am sure there is one in MySql too,but I dont know what it is,let me know.....
So Far this is what I have done to establish the connection.
Connection con = DriverManager.getConnection ("jdbc:mysql://localhost:3306/<table-name>")
DatabaseConnection.getHandle(dbid)
But the compiler is giving the following error.Kindly let me know what is it that has to be done.
/*java.sql.SQLException: No suitable driver */
There is a list of errors/exceptions following that may be one leads to another,so thats the first line of the error.
Any help would be appreciated.
thanks
nash
BTW: I am set the classpath to the mysql-Connector.jar