]Hi, I have a database (old one) that I want to drop from MySQl server with this php file :
PHP Code:
<?
system ("mysql -h hosthere -u loginhere --password=passhere -e "drop database databasenamehere"; phpinfo();
?>
^^^doesn't work... anyone got any idea?
after that I need to import a backed up database to this place with this php file :
PHP Code:
<?
system ("mysql -h hosthere -u loginhere --password=passhere databasenamehere < dump.sql");
phpinfo();
?>
^^ works just fine...
Can anybody can me with script that drop the whole database at once? Thanx