Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何防止我的服务器超时。
我收到此错误,但我无法弄清楚:
“mysql服务器已经消失”
如果这是我最好的选择,你如何在 PHP 中集成 wait_timeout。您如何处理此类问题?
当应用程序和数据库在不同的机器上运行或 mysql 很忙时,这是一个自然问题。调整mysqli 选项
$mysqli = mysqli_init(); $mysqli->options(MYSQLI_OPT_CONNECT_TIMEOUT, 5);