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 MARCH 23, 2020

Applies to:

MySQL Server - Version 4.0 and later
Generic UNIX

Symptoms

Unable to connect to local MySQL Server through socket:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/<DIR>/mysql.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/<DIR>/mysql.sock' (11)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/<DIR>/mysql.sock' (111)

Changes

 

Cause

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.