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

You have to put username and password as an argument to mysqldump, before
your redirection

John Barton
Unix Systems Administrator
Primary Networks, Inc.
[EMAIL PROTECTED]

On Tue, 3 Apr 2001, Mark Lo (3) wrote:

> Hi,
>
>    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.
>
> Thank you for your help
>
> Mark Lo
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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