国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

wjm989

已經(jīng)在 config/bootstrap.php 中加了 support\bootstrap\db\Heartbeat::class

<?php
/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://wtbis.cn/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

return [
    support\bootstrap\Container::class,
    support\bootstrap\Session::class,
    support\bootstrap\db\Laravel::class,
    support\bootstrap\Redis::class,
    support\bootstrap\Log::class,
    support\bootstrap\Translation::class,
    support\bootstrap\db\Heartbeat::class
];
4259 5 0
5個回答

wjm989

暈, 是不是最后一行少個逗號?最后一行一定要有逗號嗎?看著是返回數(shù)組,沒逗號也行嗎?

  • 暫無評論
wjm989

default.ERROR: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away {"exception":"PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in

  • 暫無評論
wjm989

bootstrap.php 和 start.php 中都加了 DB::query('select 1'); 還是報這個錯,這怎么辦?

  • 暫無評論
six

看源碼心跳默認是主連接定時發(fā)了心跳。如果你用了多個數(shù)據(jù)庫連接,需要改下support\bootstrap\db\Heartbeat類,讓每個連接都發(fā)送心跳。

  • 暫無評論
wjm989

默認心跳類時間間隔太長了,要改成 10 秒才行

  • xiuwang 2021-06-17

    阿里云的云數(shù)據(jù)庫?

年代過于久遠,無法發(fā)表回答
??