Skip to content
Snippets Groups Projects
Commit b0506562 authored by intrigeri's avatar intrigeri
Browse files

mysql: use --skip-events when backing up the performance_schema database (Closes: #673572)

parent d5a65fc0
No related branches found
No related tags found
No related merge requests found
......@@ -43,3 +43,4 @@ aihtdikh -- Allow 'when = XXX' with spaces in .sh files.
Chris Lamb <lamby@debian.org> -- rdiff.helper bugfix
Yuval Kogman <nothingmuch@woobling.org> -- RackSpace's CloudFiles support for duplicity
exobuzz - mysql bugfixes
Glennie Vignarajah <glennie@glennie.fr> -- mysql bugfix
version 1.0 -- UNRELEASED
handler changes
mysql:
. Use --skip-events when backing up the performance_schema database.
(Closes: #673572)
version 1.0-rc1 -- May 15, 2012
handler changes
dup:
......
......@@ -256,10 +256,15 @@ then
for db in $databases
do
DUMP_BASE="$MYSQLDUMP $defaultsfile $sqldumpoptions"
if [ "$db" = "information_schema" ] || [ "$db" = "performance_schema" ]
then
case "$db" in
information_schema)
DUMP_BASE="${DUMP_BASE} --skip-lock-tables"
fi
;;
performance_schema)
DUMP_BASE="${DUMP_BASE} --skip-lock-tables --skip-events"
;;
esac
# Dumping structure and data
DUMP="$DUMP_BASE $ignore $db"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment