Hello,
When I run the project using my localhost, everything works fie. But when I use an other server I get this error:
No suitable driver found for jbdc:mysql://
public void populateList2() {
Connection con = null;
Properties conProps = new Properties();
conProps.setProperty("user", "abn859");
conProps.setProperty("password", "100011399");
try {
con = DriverManager.getConnection("jbdc:mysql://myserver/dbName", conProps);
String sql = ("SELECT sID,Name, Surname,Nationality, Duration, Price, Stage, Teacher, Pay1, Pay2, Pay3, Pay4, Pay5, Pay6, Pay7, Pay8, Pay9, Pay10,Pay11 FROM Students");
st = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(sql);
st.executeQuery();
rs = st.getResultSet();
Table_Stud.setModel(DbUtils.resultSetToTableModel(rs));
} catch (Exception e) {
e.printStackTrace();
}
}