Isn't that what load data infile does?

http://www.mysql.com/doc/L/O/LOAD_DATA.html

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
----- Original Message -----
From: Peter Van Dijck <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 21, 2001 9:39 AM
Subject: [PHP] pumping database dump in mysql


> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to