diff --git a/README.md b/README.md index 1ab277b..17b7760 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,9 @@ compress dump using gzip ## .my.cnf example ``` - [client] + [mysqldump] user = mysqldump password = secret_passwd_here_HMnab4sBMmMwtDgvF=qZuuU#gsED9u6J host = localhost + max-allowed-packet=512M ``` \ No newline at end of file diff --git a/mysql_backup.sh b/mysql_backup.sh index fad09e7..683946c 100644 --- a/mysql_backup.sh +++ b/mysql_backup.sh @@ -121,7 +121,7 @@ mysqlparams=" --all-databases \ --routines \ --triggers \ --force \ - --max-allowed-packet=512M \ + --max-allowed-packet=128M \ --log-error=/var/log/mysqldump.log" ; if [ "${singletrans}" ] ; then