[think\exception\ErrorException]
PDO::prepare(): MySQL server has gone away
解决方案:修改数据库配置 database.php 文件,将 break_reconnect 参数设置为 true。断线重连。
'break_reconnect' => true,
以梦为马,莫负韶华 · 不忘初心,砥砺前行 · 日夜兼程,寻找属于自己的星辰
[think\exception\ErrorException]
PDO::prepare(): MySQL server has gone away
解决方案:修改数据库配置 database.php 文件,将 break_reconnect 参数设置为 true。断线重连。
'break_reconnect' => true,