Mysql not starting on docker
Stefan Bogdanescu
Founder & Senior Architect · 2026-06-29
# Troubleshooting MySQL Startup Failures in Docker: Solving the "Another Process Using Socket" Error
As developers working with containerized environments, especially frameworks like Laravel Sail, we often encounter frustrating startup errors that seem to have no logical connection to the application code itself. A common and particularly vexing issue is when a database service, like MySQL running inside a Docker container, fails to start due to conflicts with existing system resources.
This post dives deep into diagnosing and resolving the specific error you are facing: `"Another process with pid 62 is using unix socket file."` within your Laravel Sail setup. We will explore why this happens, how it manifests in Docker environments, and provide practical solutions.
## Understanding the Error: The Unix Socket Conflict
The log output you provided clearly indicates the source of the problem:
```
2023-01-26T21:17:05.189506Z 0 [ERROR] [MY-010259] [Server] Another process with pid 62 is using unix socket file.
2023-01-26T21:17:05.189518Z 0 [ERROR] [MY-010268] [Server] Unable to setup unix socket lock file.
2023-01