RE: [PHP] MySQL Dump In PHP
| From: | Chadwick, Russell | Date: | Fri, 22 Jun 2001 22:22:15 +0000 |
| Subject: | RE: [PHP] MySQL Dump In PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-54940@lists.php.net to get a copy of this message | ||
mysqldump is a command to be used at a prompt, from php you could
system ("mysqldump whatever > /tmp/dump.sql");
---
Toolshed Computer Productions - Professional PHP Hosting
Hosting - Dedicated Servers - Design - Programming
http://www.toolshed51.com
-----Original Message-----
From: Chris Anderson [mailto:chrisderson@ameritech.net]
Sent: Friday, June 22, 2001 1:16 AM
To: php-general@lists.php.net
Subject: [PHP] MySQL Dump In PHP
I've been reading through the MySQL manual about backing up my database
using mysql dump. I tried passing it as a Query in PHP but that doesn't seem
to work. Does anyone know how to do this? Also does the dump back up the
files into a directory I specify? I am on a virtual host and need to create
the files in my own directories. Any help would be appreciated