Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

1. How to resolve the error - can't connect to the local mysql server through socket '/var/lib/mysql/mysql.sock' (2)?

Asked by Anisha Dalal Sep 29, 2022 1.2K views 1 answer
Share

About this question

 Description: I kept getting this following error every time I tried to restart MySql. It was working fine before I changed the default data directory. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib /mysql/mysql.sock' (111) I know there are other solutions posted by others but none of them worked for me.

Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.