Add '--skip-definer' to mysqldump flags.

This commit is contained in:
Christoph 2023-05-07 16:43:03 +02:00
parent ed825fc500
commit 0f28324bbd

View File

@ -363,7 +363,7 @@ fi
if $_got_mysql_databases ; then
log_file=${log_dir}/sync_mysql.log
> $log_file
mysqldump_flags="--protocol=SOCKET --max_allowed_packet=128M --skip-opt --add-drop-table --add-locks --create-options --quick --set-charset --disable-keys --lock-tables --routines"
mysqldump_flags="--protocol=SOCKET --max_allowed_packet=128M --skip-definer --skip-opt --add-drop-table --add-locks --create-options --quick --set-charset --disable-keys --lock-tables --routines"
# - GET current (global) Autocommit value