Hi y´all!
I have the same problem, but I would like to connect on a server which is somewhere else, with my local machine. It means, I´m running my program on my local machine, but I´m using a database on a completely different place. What I´m getting all the time is this exception:
------------------------------------------------------
JdbcOdbcDriver class loaded
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver: driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.od bc.JdbcOdbcDriver@480457]
DriverManager.getConnection("jdbc:mysql://195.37.176.148:3306/Ortswexel")
trying driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.od bc.JdbcOdbcDriver@480457]
*Driver.connect (jdbc:mysql://195.37.176.148:3306/Ortswexel)
getConnection: no suitable driver
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at database.DBConnection.connectDB(DBConnection.java: 72)
at database.DBConnection.getInstance(DBConnection.jav a:48)
at database.FigurVerwaltung.getAlleFiguren(FigurVerwa ltung.java:74)
at database.Start.main(Start.java:33)
SQLException: SQLState(08001)
java.sql.SQLException: No suitable driver
------------------------------------------------------
It would be great if somebody could help me. I guess the driver is correct, but the adress could be wrong, I´m not really sure!
Thanks,
Dariusz
|