I backup my MySQL databse to a specific folder, say, d:\backup\ by a webpage. The backup goes without issues, but I am not able to restore it using the following command.
Runtime.getRuntime().exec("mysql -u root -p root sgapp < D:/backup/bkup.sql");
What is the cause and how can I solve this?