Quantcast
Channel: Using mysqldump in cron job without root password - Server Fault
Browsing all 7 articles
Browse latest View live

Answer by Barry Shein for Using mysqldump in cron job without root password

Although several of these responses are helpful several are confusing because the unix root user and the mysql root user are not the same and basically have no relationship other than they both use the...

View Article



Answer by user34196 for Using mysqldump in cron job without root password

Cron can be very frustrating to debug. When the cron jobs execute, they don't have an environment set like you take for granted with a shell. Tips for cron:use full paths to everything --...

View Article

Answer by gbjbaanb for Using mysqldump in cron job without root password

Your shell use can do it becuase you have a shell to run it from, ie when you logon, all your shell scripts in your profile get run.Cron does not have such luxuries. When it logs on (as root) it'll log...

View Article

Answer by Martijn Heemels for Using mysqldump in cron job without root password

If the script is run by root you could create a file /root/.my.cnf with permissions 600 and the following contents:[client]user = DBUSERNAMEpassword = DBPASSWORD(where you enter your MySQL username and...

View Article

Answer by monomyth for Using mysqldump in cron job without root password

Security should not be done through obscurity.If you afraid that someone has access to your root account, it doesn't matter if root's mysql password is stored in the script, since you have all your...

View Article


Answer by Zoredache for Using mysqldump in cron job without root password

In order to connect to the mysql server you must provide credentials. You can specify them in a configuration file, pass them via the command line, or simply create account that doesn't require...

View Article

Using mysqldump in cron job without root password

If I login with the root password on my box I can simply typemysqldump --all-databases and I will get th expected "Dump". I setup a job in cron.daily to run and dump this to a backup drive. The problem...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images