Databases :: MySql :: Performing backups without scripted passwords |
|||
| By: twentyfour_seven |
Date: 15/10/2004 00:00:00 |
Points: 150 | Status: Answered Quality : Excellent |
|
Hi All, My backup software is able to run commands from shell scripts (Linux) before it runs the actual backup. At the moment, the script contains the following command to backup the MySQL database : mysqldump --all-databases --opt -u root -p "************" | gzip -c > /home/backup/all_db.sql.gz Obviously having a root password sitting in a script is not good for security ! (even though the script is chown root:root and chmod 700). Is there a way to create a user that : 1/ Can only perform backups and nothing else. 2/ Doesn't need a password Thanks |
|||
| By: VGR | Date: 15/10/2004 02:59:00 | Type : Answer |
|
| 2) yes, just don't set a password or say IDENTIFIED BY '' in your GRANT phrase 1) not sure from <A HREF="http://www.mysql.com/doc/en/GRANT.html">http://www.mysql.com/doc/en/GRANT.html</A> but you can try to give it first USAGE, then if it fails, SELECT, and so on |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








