diff --git a/lib/semian/mysql2.rb b/lib/semian/mysql2.rb index db1f9382..31d41045 100644 --- a/lib/semian/mysql2.rb +++ b/lib/semian/mysql2.rb @@ -22,8 +22,8 @@ module Mysql2 include Semian::Adapter CONNECTION_ERROR = Regexp.union( - /Can't connect to MySQL server on/i, - /Lost connection to MySQL server/i, + /Can't connect to (?:MySQL )?server on/i, + /Lost connection to (?:MySQL )?server/i, /MySQL server has gone away/i, /Too many connections/i, /closed MySQL connection/i,