"Mark Lo (3)" <[EMAIL PROTECTED]> wrote:
>    I would like to know how to backup mysql using crontab or cron jog.
>
> I have add a line in my crontab file :
> mysqldump --flush-logs --add-drop-table shuncheong >
> /backup/shuncheong.sql -u root -pmarkloky;
>
> but I got nothing in  shuncheong.sql file.

You need to supply the MySQL username and password to the left of the
standard output (">") operator.  Try:

mysqldump --flush-logs --add-drop-table
    shuncheong -u root -pmarkloky
    > /backup/shuncheong.sql

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to