Pete Harlan wrote:
> > Probably because you need to redirect your output into the file AFTER all
> > the options. Rewrite your command like this:
>
> In which shell? In SunOS /bin/sh, or in bash, the shell strips out
> the redirection, and the program sees what's left. It doesn't matter
> where the redirection is; it can even be before the call to mysqldump.
>
> --Pete
>
Yes, but it might be that mysqldump wants the database to dump as the last
argument....
lars
>
> > mysqldump --flush-logs --add-drop-table -u root -p markloky shuncheong >
> > /backup/shuncheong.sql
> >
> > See if that works. The way you had it written, you weren't passing the -u
> > and -p options to mysqldump. So, mysqldump was connecting as an unprivileged
> > user.
> >
> >
> >
> > On 4/2/01 9:08 AM, "Mark Lo (3)" <[EMAIL PROTECTED]> 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