I have to restore the mysql database through java application. I tried using the code
" Runtime.getRuntime().exec("mysql -u -p databasename < c:/backup.sql");"
But this is restoring the database.
But the same command works fine while running through command line.
Please provide some solutions to this issue.