In an another case that you have exported the database using mysqldump
(using unix) then this could do the job:
$cmd = '/usr/bin/mysql -h '.$dbhost.' -u '.$dbuser.' -p
'.$dbpass.' < '.$file;
exec($cmd,$out,$retval);
} else {
$cmd = '/usr/bin/mysql -h '.$dbhost.' -u '
Arena Servers wrote:
If it helps, after posting this question, I did some searching, and I found an
installation script which creates a database and creates the tables using pure
sql statements in a php file. Here's the coding...
';
exit;
}
}
--
Postgresql & php tutorials
http://www.de