|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Crontab
Hi,
I'm trying to run a shell script through the cron which does: mysqldump --user=root -p --all-databases > all_databases.sql however, this command requires a password, how do I pass the password to mysql? Thanks! |
|
#2
|
||||
|
||||
|
Either use a .my.cnf file where you store the password for the user that runs the crontab, or run mysqldump --user=<usr> --password=<password>... Note that this will appear in logs though...
//NoXcuz
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Crontab |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|