From a88ac20d0f628b28d2e4f2b00fa52455deef2735 Mon Sep 17 00:00:00 2001 From: Luke Kuzmish Date: Sun, 24 Sep 2023 06:38:20 -0400 Subject: [PATCH] detect read-only mode error as a lost connection --- 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 e63d2deb222e..f4aa47d95ba0 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -66,6 +66,7 @@ protected function causedByLostConnection(Throwable $e) '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', + 'is in read-only mode', ]); } }