visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: Performing backups without scripted passwords


By: twentyfour_seven U.S.A.  Date: 15/10/2004 00:00:00  English  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 English  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

EContact
browser fav
page generated in 321.929220 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page