Can't connect to local MySQL server through socket

Hi, I’m starting to create a, sort of huge, Django application. I started writing the application from simple task and ran it and it was working fine. And then i tried to dockerize it and that is when i started getting issues. I resolved some of them but this mysql issue is the one which I haven’t been able to resolve. The error that i get is “Can’t connect to local MySQL server through socket”.

My Docker file contents are:

Dockerfile

FROM python:2.7
ADD . /userCentral
WORKDIR /userCentral
COPY start.sh /start.sh
RUN pip install -r requirements.txt

My docker-compose file is:
web:
build: .
entrypoint: [“/start.sh”]
ports:
- “8000:8000”
volumes:
- .:/userCentral

But somehow I am getting the error I mentioned. Any help would be appreciated.

P.S. I would like to mention here that when I run “docker images”, I get two images named as ‘none’. One of them must be mysql, but for some reason it shows as none

Never mind. Resolved the issue

Please, can you tell us how did you do to solve that problem?