1. 修改mysql最大連結數: 第一步: vim /etc/my.cnf 第二步: 在[mysqld]下加入一行max_connections=256 第三步: 重新開機生效 2.修改mysql端口: