DBIx-ParseError-MySQL

 view release on metacpan or  search on metacpan

lib/DBIx/ParseError/MySQL.pm  view on Meta::CPAN

114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Connection dropped/interrupted
(?-x:MySQL server has gone away)|
(?-x:Lost connection to MySQL server)|
# NOTE: Exclude max_execution_time interruptions, since these are not connection
# failures, and retrying them would just produce the same results
(?-x:Query execution was interrupted(?!, maximum statement execution time exceeded))|
 
# Initial connection failure
(?-x:Bad handshake)|
(?-x:Too many connections)|
(?-x:Host '\S+' is blocked because of many connection errors)|
(?-x:Can't get hostname for your address)|
(?-x:Can't connect to (?:local )?MySQL server)|
 
# Packet corruption
(?-x:Got a read error from the connection pipe)|
(?-x:Got (?:an error|timeout) (?:reading|writing) communication packets)|
(?-x:Malformed communication packet)|
 
# XXX: This _might be_ a connection failure, but the DBD::mysql error message
# does not expose the direct failure cause.  See DBD::mysql/dbdimp.c#L2551.

t/basic.t  view on Meta::CPAN

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    'Deadlock found when trying to get user-level lock; try rolling back transaction/releasing locks and restarting lock acquisition',
    'Deadlock found when trying to get locking service lock; try releasing locks and restarting lock acquisition',
    'Lock wait timeout exceeded; try restarting transaction',
    'Service lock wait timeout exceeded',
    'WSREP detected deadlock/conflict and aborted the transaction. Try restarting the transaction',
],
connection => [
    'MySQL server has gone away',
    'Lost connection to MySQL server during query',
    "Lost connection to MySQL server at 'reading initial communication packet', system error: 0",
    "Host 'example.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'",
    "Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (38)",
    "Can't connect to MySQL server on 'host_name' (111)",
    'Got an error reading communication packets',
    'Got an error writing communication packets',
    'Got timeout reading communication packets',
    'Got timeout writing communication packets',
    'Turning off AutoCommit failed',
],
shutdown => [
    'WSREP has not yet prepared node for application use',



( run in 0.354 second using v1.01-cache-2.11-cpan-95122f20152 )