Re: [PHP] mysqldump

[email protected] (Mari Masuda)
Newsgroups php.general
Message-ID <[email protected]>
On Aug 17, 2010, at 11:40 AM, tedd wrote:

> At 2:17 PM -0400 8/17/10, Robert Cummings wrote:
>> On 10-08-17 02:08 PM, tedd wrote:
>>> Hi gang:
>>> 
>>>> At 6:11 PM -0400 8/13/10, Daniel P. Brown wrote:
>>>>     Easiest method, from the command line on the server from which you
>>>> want to dump the database:
>>>> 
>>>>         mysqldump -u user -p database_name>  outfile.sql
>> 
>> Command is wrong... should be:
>> 
>>    mysqldump -u user -p password database_name > outfile.sql
> 
> 
> I did catch that, but did not correct it in my post (considering it was a direct quote).
> 
> -------

Actually, 

	mysqldump -u user -p password database_name > outfile.sql 

is also the incorrect command.  When providing the password in the command, there should not be a space between the "-p" and the actual password.  Try 

	mysqldump -u user -ppassword database_name > outfile.sql 

and see if that gets you anywhere.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.