|
One line Mysql backup
Hi.
I am attempting to backup my Mysql database.. by adding a command to a script
mysqldump --user testuser --password testpassword --all-databases> alldatabases.sql
But when i run this command as above it doesn't back up the databases it just creates an sql file that is about 203 bytes.. with the below info in
Usage: mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]
For more options, use mysqldump --help
If i run the command without the password
mysqldump --user testuser --all-databases> alldatabases.sql
Which then prompts me for a password after i put in the password it backs up fine and creates 60 meg sql file..
Is this a mysql setting i can change?
Last edited by Roosta21; 11-28-2007 at 04:57 AM.
|