Is there any way to restore a .sql which is a backup of a database into a newly created database using java jdbc?
"mysql -u root -password stdtravels1 < C:/Users/j/Desktop/std.sql"
I already tried the above code. still with no sucess
Is there any way to restore a .sql which is a backup of a database into a newly created database using java jdbc?
"mysql -u root -password stdtravels1 < C:/Users/j/Desktop/std.sql"
I already tried the above code. still with no sucess
Runtime.getRuntime().exec("mysql -u username -password dbName xxx.sql")
Using this you could restore.