anyone can help me with this program?# Java - 爪哇娇娃
l*r
1 楼
I am always getting a "Exception: No suitable driver found for jdbc:mysql://
localhost:3306/test" from the following program. I have installed mysql
connector for Java and ODBC driver. Could anyone tell me what might be wrong
? I am using Fedora Linux 6.. The source code is listed bewlow:
import java.sql.*;
public class DBJava {
public static void main(String args[]) {
Connection con = null;
String query = "SELECT * FROM temp";
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriv
localhost:3306/test" from the following program. I have installed mysql
connector for Java and ODBC driver. Could anyone tell me what might be wrong
? I am using Fedora Linux 6.. The source code is listed bewlow:
import java.sql.*;
public class DBJava {
public static void main(String args[]) {
Connection con = null;
String query = "SELECT * FROM temp";
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriv