Re: Restoring a Dump File With PHP
| From: | Mark Charette | Date: | Sat, 07 Jul 2001 20:31:23 +0000 |
| Subject: | Re: Restoring a Dump File With PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56673@lists.php.net to get a copy of this message | ||
How does this _not_ work (as long as you supply the path to mysql, the
username, and the password????
mark C.
----- Original Message -----
From: "Chris Anderson" <chrisderson@ameritech.net>
To: <php-general@lists.php.net>
Sent: Saturday, July 07, 2001 3: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