How can I import a mysql database dump file (contains insert and create table statements) programmatically through a java program. I need this as the setup phase of a unit t
You could start a new process from java and execute this command if you have access to the mysql executable wherever you are running the import. Something like this: