技术小黑屋

ERROR 2002 (HY000): Can't Connect to Local MySQL Server Through Socket '/var/lib/mysql/mysql.sock' (2)

This works for me.

1
2
sudo systemctl start mysqld.service
sudo systemctl enable mysqld.service

Others

我的博客即将搬运同步至腾讯云+社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=2t07a740wrok0


我的知乎 Live 推荐