updated database README

pull/85/head
13621160019@163.com 2021-09-16 22:21:24 +08:00
parent 4703bdbcf8
commit 61fa6270c3
1 changed files with 10 additions and 0 deletions

View File

@ -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