---
title: "Discussion on \"\"Can't Connect To Local MySQL Server Through Socket '/Var/Run/Mysqld/Mysqld.Sock' (2)\" on Docker ?\" | Hashnode"
description: "Discussion on \"\"Can't Connect To Local MySQL Server Through Socket '/Var/Run/Mysqld/Mysqld.Sock' (2)\" on Docker ?\". Do you face an issue whereas you can't connect to MySQL? Try to check domysqld.sock and mysqld.pid exist or not. If not, inside the docker terminal, run these commands :\nsudo touch /var/run/mysqld/mysqld.sock\nsudo touch /var/run/mysqld/mysqld.pid\nsud..."
url: "https://hashnode.com/posts/cant-connect-to-local-mysql-server-through-socket-varrunmysqldmysqldsock-2-on-docker/61a5b1342be89f3d0aba0cf7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# ["Can't Connect To Local MySQL Server Through Socket '/Var/Run/Mysqld/Mysqld.Sock' (2)" on Docker ?](https://fiko.me/cant-connect-to-local-mysql-server-through-socket-varrunmysqldmysqldsock-2-on-docker?utm_source=hashnode&utm_medium=feed)

Do you face an issue whereas you can't connect to MySQL? Try to check domysqld.sock and mysqld.pid exist or not. If not, inside the docker terminal, run these commands : sudo touch /var/run/mysqld/mysqld.sock sudo touch /var/run/mysqld/mysqld.pid sud...

Oct 13, 2019 · 1 min read · fiko.me  
Updated Dec 30, 2021  
Read the article

-   [#mysql](https://hashnode.com/tag/mysql)
-   [#sql](https://hashnode.com/tag/sql)

## Written by

[Fiko Borizqy](https://hashnode.com/@fikoborizqy)

@fikoborizqy · Yogyakarta, Indonesia

  
[View profile](https://hashnode.com/@fikoborizqy)

Magento 2 Developer

I wrote these tutorials for myself in future when I forget for the next steps.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
