vi /etc/my.cnfmysql
[mysqld] # 項目添加如下內容 wait_timeout=2880000 interactive_timeout = 2880000 max_allowed_packet = 100M