CODE
try{
Class d = Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://hosting.zymic.com/mythicwolf_zxq_net_firsttest";
String username = "mythicwolf_zxq_net_mythicwolf";
String pass = "mypass"; //not my real pass
Connection dbcon = DriverManager.getConnection(url, username, pass);
String stmt = "create table hs ( int y, int z, int n, primary key (n) ); ";
Statement pst = dbcon.createStatement();
pst.execute(stmt);
for(int i = 0; i < 4; i++)
{
for(int j = 0; j < 4; j++)
{
for(int f = 0; f < 4; j++)
{
String atb = "insert into hs values ("+f+", "+j+", "+i+")";
pst.addBatch(atb);
}
}
}
pst.executeBatch();
}catch(Exception e){
e.printStackTrace();
}
Class d = Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://hosting.zymic.com/mythicwolf_zxq_net_firsttest";
String username = "mythicwolf_zxq_net_mythicwolf";
String pass = "mypass"; //not my real pass
Connection dbcon = DriverManager.getConnection(url, username, pass);
String stmt = "create table hs ( int y, int z, int n, primary key (n) ); ";
Statement pst = dbcon.createStatement();
pst.execute(stmt);
for(int i = 0; i < 4; i++)
{
for(int j = 0; j < 4; j++)
{
for(int f = 0; f < 4; j++)
{
String atb = "insert into hs values ("+f+", "+j+", "+i+")";
pst.addBatch(atb);
}
}
}
pst.executeBatch();
}catch(Exception e){
e.printStackTrace();
}
so, is there any way to connect to your zymic database without having the program ran on the zymic servers?