Escaping a password using mysqldump console

Posted by psynnott on Server Fault See other posts from Server Fault or by psynnott
Published on 2010-03-25T11:09:57Z Indexed on 2010/03/25 11:13 UTC
Read the original article Hit count: 498

Filed under:
|

I am running a mysqldump via a bash script and have encountered a problem with a password that contains special characters.

mysqldump -hlocalhost -uUSERNAME -pPA$$W0RD DATABASE | 
                                gzip > /home/USERNAME/backups-mysql/BACKUP.gz

How do I escape the password?

© Server Fault or respective owner

Escaping a password using mysqldump console

Posted by psynnott on Super User See other posts from Super User or by psynnott
Published on 2010-03-25T09:49:57Z Indexed on 2010/03/25 10:03 UTC
Read the original article Hit count: 498

I am running a mysqldump via a bash script and have encountered a problem with a password that contains special characters.

mysqldump -hlocalhost -uUSERNAME -pPA$$W0RD DATABASE | 
                                gzip > /home/USERNAME/backups-mysql/BACKUP.gz

How do I escape the password?

© Super User or respective owner

Related posts about mysql

Related posts about password