[PHP] Re: mysqldump

2003-02-27 Thread Niels Andersen
There mey, but need not be a space. As far as I know, the option scanner in mysqldump ignores spaces between short options and their values. John Taylor-Johnston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks! exec(mysqldump -c -q database -u user -ppassword, $sql); Why

[PHP] RE: mysqldump

2003-02-27 Thread Uttam
snip from manual for -p option: |- -p[password], --password[=...] Password to use when connecting to server. If a password is not given on the command line, you will be prompted for it. Note that if you use the short form -p you can't have a space between the option and the

Re: [PHP] Re: mysqldump

2003-02-27 Thread Tom Rogers
Hi, Thursday, February 27, 2003, 2:55:48 PM, you wrote: JTJ Thanks! exec(mysqldump -c -q database -u user -ppassword, $sql); JTJ Why is there no space between the -p and password? -ppassword JTJ Am I wrong? JTJ Thanks, JTJ John Probably because a space is a valid char in password --

[PHP] Re: mysqldump

2003-02-26 Thread Joseph Szobody
You need to use exec, system, etc. Here is a script that I recently put together. It backs up the database, and pushes it as a download to the user. ?php $filename = db_backup_ . date(n-j-y); header(Content-Disposition: filename=$filename.sql); header(Content-Type: application/force-download);

[PHP] Re: mysqldump

2003-02-26 Thread Joseph Szobody
u. that should read: exec(mysqldump -c -q database -u user -ppassword, $sql); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysqldump

2003-02-26 Thread John Taylor-Johnston
Thanks! exec(mysqldump -c -q database -u user -ppassword, $sql); Why is there no space between the -p and password? -ppassword Am I wrong? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Mysqldump

2002-10-06 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I'm not sure about windows machines as I use linux but it looks like you're sending the right commands. You need to check your permissions. ~Paul On Sunday 06 October 2002 12:30 am, Uma Shankari T. wrote: Hello, I am trying to dump the