Re: mysqldump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Aug 17, 2010, at 3:19 PM, tedd <tedd@xxxxxxxxxxxx> wrote:

> At 11:45 AM -0700 8/17/10, Mari Masuda wrote:
>> 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.
> 
> Bingo -- that worked.
> 
> It's interesting that a space is optional between -u and user, but required to be absent between -p and password. Seems not symmetrical to me

Tedd... Goad you got the answer you needed as far as safely attacking the command line if my memory serves me correctly you are on a Mac so What you are looking for is a program called terminal. 

It's in the utilities folder of your harddrive. Then what you would do is assuming your host supports ssh is simply type into the terminal application: ssh yourUzerName@yourDomain 

Say yes when it asks if you want to store the encryption key (I think that's what it's called) and then enter your password. Once all of that is done then just type in the command that was given and it will create the file just as you requested. 

Now I typed all that for the archives since you found a way to do t with exec but I'm always happy to help the archives where I can :)

Have a great night!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux