workflow80
asked on
mysqldump - output.
Hi
I have a batch DOS where i put this
"%mysqldir%\bin\mysqldump" --user=%dbuser% --password=%dbpass% database > "%bkupdir%\%fn%_backup.sql "
It works and the file .sql is created with the data. Is it possible to have any output once the mysqldump is finished, something like 8 tables backup, 60 MB or more over if there is an error .
Thanks.
I have a batch DOS where i put this
"%mysqldir%\bin\mysqldump"
It works and the file .sql is created with the data. Is it possible to have any output once the mysqldump is finished, something like 8 tables backup, 60 MB or more over if there is an error .
Thanks.
ASKER
I have this error when I run :
"%mysqldir%\bin\mysqldump" --user=%dbuser% --password=%dbpass% database > "%bkupdir%\%fn%_database.s ql" --show-progress-size=1500 --verbose >out.sql --log-error=errordata.txt
mysqldump: unknown variable 'show-progress-size=1500'
"%mysqldir%\bin\mysqldump"
mysqldump: unknown variable 'show-progress-size=1500'
ASKER
Also, inside my batch , i've changed the command like this :
"%mysqldir%\bin\mysqldump" --user=%dbuser% --password=%dbpass% --verbose >out.sql database >"%bkupdir%\%fn%_data.sql"
The output is not created but my data dump file is created .
"%mysqldir%\bin\mysqldump"
The output is not created but my data dump file is created .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By the way, I like to use this format:
mysqldump -u root -p
This way, I never have to pass or store password in clear text as the command will prompt you on the next line and will use the * (hidden) entry format. Just a tidbit if you were not already aware.
mysqldump -u root -p
This way, I never have to pass or store password in clear text as the command will prompt you on the next line and will use the * (hidden) entry format. Just a tidbit if you were not already aware.
http://bugs.mysql.com/bug.php?id=44071
Errors should show by default. You can log those to a file using --log-error=file_name
http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_log-error