this is a php script for import .sql file in mysql but suddenly it doesn't work what i am doing wrong browser show false messege
<?php
//ENTER THE RELEVANT INFO BELOW
$mysqlDatabaseName ='trigger';
$mysqlUserName ='username';
$mysqlPassword ='mypassword';
$mysqlHostName ='localhost';
$mysqlImportFilename ='event.sql';
$command='mysql -h' .$mysqlHostName .' -u' .$mysqlUserName .' -p' .$mysqlPassword .' ' .$mysqlDatabaseName .' < ' .$mysqlImportFilename;
exec($command,$output=array(),$worked);
switch($worked){
case 0:
echo 'Import file <b>' .$mysqlImportFilename .'</b> successfully imported to database <b>' .$mysqlDatabaseName .'</b>';
break;
case 1:
echo 'false';
break;
}
?>
?>