1
我收到了MySQL server has gone away
錯誤。我不太清楚爲什麼會發生這種情況,但在做了一些研究後,最常見的答案就是編輯cnf文件以增加數據包大小和其他設置。AWS Linux - MySQL cnf文件在哪裏編輯數據包大小?
問題是我找不到這個文件。它會在哪裏?
我發現/etc
下my.cnf
文件,但它包含所有如下:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mysqld according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
謝謝