From affd48d43ab9eedcae24db0d73bfd1a2047afe0e Mon Sep 17 00:00:00 2001 From: Craig Johnston <24657691+IndexZer0@users.noreply.github.com> Date: Thu, 20 Feb 2020 10:10:54 +0000 Subject: [PATCH] - Added exception messages seen when MySQL Aurora is failing over. --- src/Illuminate/Database/DetectsLostConnections.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Database/DetectsLostConnections.php b/src/Illuminate/Database/DetectsLostConnections.php index 1d1bc8198538..17d94b081147 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -40,6 +40,8 @@ protected function causedByLostConnection(Throwable $e) 'Communication link failure', 'connection is no longer usable', 'Login timeout expired', + 'Connection refused', + 'running with the --read-only option so it cannot execute this statement', ]); } }