pumping database dump in mysql
| From: | Peter Van Dijck | Date: | Sat, 21 Apr 2001 13:39:16 +0000 |
| Subject: | pumping database dump in mysql | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49667@lists.php.net to get a copy of this message | ||
Hi,
I want to write a script that takes a mysql dump file and pumps it into the database.
I got the dump in a variable and then did
$res = mysql_query($dumpvariable);
but that doesn't work? I know how to do it on the command line, I just want to do it in a php script...
thanks for any hints!
Peter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://liga1.com building multiple language/culture websites
http://poorbuthappy.editthispage.com online ethnology, up&down