database icon indicating copy to clipboard operation
database copied to clipboard

mysql重启后报:Connection was killed

Open ray929 opened this issue 2 years ago • 1 comments

后端mysql重启后,第一个query会报:Connection was killed 是不是把这个文字加入到下面的断线判定数组中比较好?

        $disconnectMessages = [
            'server has gone away',
            'no connection to the server',
            'Lost connection',
            'is dead or not enabled',
            'Error while sending',
            'decryption failed or bad record mac',
            'server closed the connection unexpectedly',
            'SSL connection has been closed unexpectedly',
            'Error writing data to the connection',
            'Resource deadlock avoided',
            'failed with errno',
        ];

ray929 avatar May 18 '23 03:05 ray929

不太敢加,重启的场景太低频了,抛出一次错误问题也不大(反正后续的请求应该就自动恢复正常了)

onanying avatar May 23 '23 10:05 onanying