MySQL Forums
Forum List  »  Backup

how can I prevent the password from being listed in mysqlbackup output
Posted by: John Sebastian
Date: February 20, 2013 01:50PM

I issue the following mysqlbackup command:

mysqlbackup --user=$USERNAME --password=$PASSWORD --backup-dir=$BACKUPDIR --with-timestamp backup-and-apply-log>$LOGFILE 2>&1

The output log file has an INFO section and it shows the password used in clear text. See clip from output of the above command below:


MySQL Enterprise Backup version 3.8.0 [2012/07/27]
Copyright (c) 2003, 2012, Oracle and/or its affiliates. All Rights Reserved.

mysqlbackup: INFO: Starting with following command line ...
mysqlbackup --user=eiadba --password=realpasswordshown
--backup-dir=/u02/mysql_backups --with-timestamp backup-and-apply-log


I'm not seeing a switch to turn off this behavior. Maybe I've not looked hard enough.

Can anyone comment?

Options: ReplyQuote


Subject
Views
Written By
Posted
how can I prevent the password from being listed in mysqlbackup output
2458
February 20, 2013 01:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.