database
database copied to clipboard
Simple database for use in multiple execution environments, with support for FPM, CLI, Swoole, WorkerMan, and optional connection pool (coroutine) / 可在各种环境中使用的轻量数据库,支持 FPM、CLI、Swoo...
我是在webman项目中进程开启的时候加载了swoole,并且加载了Mix\Database,访问数据库使用协程没有问题,但是服务开启久了以后再次访问,第一次请求就会出现上述的错误。 请问是我加载的方式不对吗? ```php namespace bootstrap; use Mix\Database\Database; use Swoole\Coroutine; use Webman\Bootstrap; class TestBootstrap implements Bootstrap { static $db; public static function start($worker) { echo "TestBootstrap start\n"; // 1. 创建连接池 self::$db...
后端mysql重启后,第一个query会报:Connection was killed 是不是把这个文字加入到下面的断线判定数组中比较好? ```php $disconnectMessages = [ 'server has gone away', 'no connection to the server', 'Lost connection', 'is dead or not enabled', 'Error while sending', 'decryption failed or...