ChrisRChamberlain
Programmer
Hi all
Mysql newbie so please be gentle.
correctly restores a MySql database from a backup when run in the terminal.
Want to run this ultimately as a cron job, but
does not work.
Would appreciate the error(s) being corrected.
TIA
PDFcommander.com
motrac.co.uk
Mysql newbie so please be gentle.
Code:
mysql -uroot -pPassword mydatabase < /var/data/backup/mydatabase.sql
Want to run this ultimately as a cron job, but
Code:
#! /bin/bash
/etc/init.d/mysql -uroot -pPassword mydatabase < /var/data/backup/mydatabase.sql
Would appreciate the error(s) being corrected.
TIA
FAQ184-2483
Chris PDFcommander.com
motrac.co.uk