From 1ff099a5f465ec4161c49f0327a9393185ebfa40 Mon Sep 17 00:00:00 2001 From: magnusvin Date: Wed, 12 Jul 2023 04:33:08 +0200 Subject: [PATCH] Add new SQL error message "No connection could be made ... actively refused it" (#47718) --- src/Illuminate/Database/DetectsLostConnections.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Database/DetectsLostConnections.php b/src/Illuminate/Database/DetectsLostConnections.php index bd23bbc6e7d1..e63d2deb222e 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -65,6 +65,7 @@ protected function causedByLostConnection(Throwable $e) 'SSL: Handshake timed out', 'SQLSTATE[08006] [7] SSL error: sslv3 alert unexpected message', 'SQLSTATE[08006] [7] unrecognized SSL error code:', + 'SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it', ]); } }