I have stored mysqldump file in one of the folder of my project.
I am using following command to restore the database.
$cmd = "mysql -h {$server_name} -u {$username} -p{$password} {$database_name} < $restore_file";
exec($cmd);
but it is not working.
Please help me.