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
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
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
--
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);
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
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
-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
7 matches
Mail list logo