Tech article

ERROR 2002 printed a socket path MySQL never dialed: the message stops at 100 characters

Community description: The first thing I did was retype the path. The client had just told me this: ERROR 2002 (HY000):...

Dev.to | Sep 14, 2026 | Vinh Nguyen

Automated excerpt

I passed --socket a path ending in . sock, and the error came back with the last three characters gone. The path in that message is not the path the client dialed, and on MySQL 26. 7. 0 it never can be once the path gets long enough — the message stops at 100 characters. One socket path, 103 characters, which is legal.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

More tech news