My Oracle Support Banner

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/<DIR>/mysql.sock' (Doc ID 1023190.1)

Last updated on AUGUST 28, 2023

Applies to:

MySQL Server - Version 4.0 and later
Generic UNIX


Unable to connect to local MySQL Server through socket:




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.