OneLinersCommand workbench
Verified diagnostic signature

MySQL is unreachable, disconnected, or at its connection limit.

Match output from mysql, understand the likely cause, then continue with sourced, read-only checks.

Confidence
high
Platforms
linux · macos · windows
Verified
2026-07-24
Recognized output

Signature matched locally

Can't connect to MySQL server

OneLiners matches this pattern in your browser. Your pasted output is not stored or indexed.

Likely causes

What usually produces this signal

  1. Listener or socket mismatch
  2. Network interruption
  3. Idle or packet timeout
  4. Connection exhaustion
Safe next checks

Collect evidence before changing the system

01

Resolve a hostname to its IP address

dig +short <domain>

The output matches the expected target and exits without an error.

02

Check whether a TCP port accepts connections

nc -vz <host> <port>

The output matches the expected target and exits without an error.

03

List listening TCP ports and their processes

lsof -iTCP -sTCP:LISTEN -n -P

The output matches the expected target and exits without an error.

04

Show Linux memory and swap usage

free -h

The output matches the expected target and exits without an error.