Re: Restoring a Dump File With PHP
| From: | Chris Lambert - WhiteCrown Networks | Date: | Sat, 07 Jul 2001 20:44:36 +0000 |
| Subject: | Re: Restoring a Dump File With PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56674@lists.php.net to get a copy of this message | ||
phpMyAdmin - www.phpwizard.net/
or...
http://www.sitepointforums.com/showthread.php?postid=193539#post193539
/* Chris Lambert, CTO - chris@whitecrown.net
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
----- Original Message -----
From: Chris Anderson <chrisderson@ameritech.net>
To: <php-general@lists.php.net>
Sent: Saturday, July 07, 2001 4:25 PM
Subject: [PHP] Restoring a Dump File With PHP
I created a MySQL dump file (.sql) and I wanted to use it to restore my
database. Unfortunately the manual (MySQL) only shows the command line
method:
mysql database < file.sql
I tried this in PHP and it didn't work. Does anyone know how to load the sql
file into the database through PHP? Thanks