Afficher un message
Vieux 22/03/2006, 22h37   #2
Bill Karwin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sheduled mysqldump via windows bat file

"Robert Blackwell" <me@email.com> wrote in message
news:CGiUf.11808$wD1.3719@trnddc02...
> C:\Program Files\MySQL\MySQL Server 4.1\bin
> mysqldump -u user -p'pass' dbname >C:\DATE_DAY%_%DATE_TIME%_database.sql


I see the following four errors in the above line.

1. Missing a beginning % character before DATE_DAY. Variables should have a
% before and after the variable name.
2. Must enclose the path to the mysqldump program in double-quotes to ensure
it's treated as one argument.
3. Must use double-quotes around "pass", single-quotes don't seem to work
when I try it.
4. Missing a slash between bin and mysqldump.

So this line should be:

"C:\Program Files\MySQL\MySQL Server 4.1\bin\mysqldump" -u user -p"pass"
dbname >C:\%DATE_DAY%_%DATE_TIME%_database.sql

(that's all one line, no linebreak in the middle)

Regards,
Bill K.


  Réponse avec citation
 
Page generated in 0,05240 seconds with 9 queries