From 61fa6270c3a836b9371e94f6573447e41727a26c Mon Sep 17 00:00:00 2001 From: "13621160019@163.com" <13621160019@163.com> Date: Thu, 16 Sep 2021 22:21:24 +0800 Subject: [PATCH] updated database README --- database/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/database/README.md b/database/README.md index 731454c0..2a120a8e 100644 --- a/database/README.md +++ b/database/README.md @@ -43,6 +43,16 @@ character-set-client-handshake = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci ``` +#### Fix MySQL Error: Got a packet bigger than 'max_allowed_packet' bytes +Change the my.cnf or my.ini file (usually found in /etc/mysql/) under the mysqld section and set: +``` +max_allowed_packet=100M +``` +or you could run these commands in a MySQL console connected to that same server: +``` +set global net_buffer_length=1000000; +set global max_allowed_packet=1000000000; +``` ### Database Definition