how to import mysql database using java
hello
please how to import mysql database using java .
I used this code but its not working :
try{
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("mysql -h localhost -u root telecom < C:\\RR.sql");
}catch (Exception e) {
System.out.println("ERROR :"+e.getMessage());
}
thanks
Subject
Written By
Posted
how to import mysql database using java
July 17, 2012 03:26AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.