I made my database in mySQL and I exported it in a file using mysqldump.
Is there a way to make my program on JAVA to connect in mysql and create an empty database with the stracture I saved in the file, only if the above database is not allready exist to the server?
Thank you!
解决方案
Try something like :
Runtime.getRuntime().exec("mysql -u -p < ");
you will need to replace with your username / with your password / with you database name / with the file you used for backup