I'm using the following mysqldump
command to backup ma database:
mysqldump --extended-insert=FALSE -hlocalhost -uusername -ppassword --databases my_database > ${FILELOCAL}
This is working very well.
I this database I also have some scheduled events.
Unfortunately the backup file doesn't contain my scheduled events.
ATTENTION: I don't want to know how to schedule a backup with mysqldump
. I want to know how to also backup my scheduled events when using mysqldump
.
The solution is just to add --events
like this:
mysqldump --extended-insert=FALSE -hlocalhost -uusername -ppassword --databases my_database --events > ${FILELOCAL}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.