While installing ERPNext on Docker windows 10

  • Issue type : Can’t connect to MySQL server on ‘db’
  • OS Version/build :Windows 10
  • App version : docker desktop 4.26.0
  • Steps to reproduce :
    I have installed docker desktop 4.26.0 after that i have executed
    docker compose -p pwd -f pwd.yml up -d in command prompt
    to install ERPNext after that i exeuted
    docker logs pwd-create-site-1 -f to check any errors while installing
    i got the below error
    pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 111] Connection refused)”)
    also not able to launch the ERPNext application in my localhost
    Could you please help me to resolve this issue.
    Thank you

Unless you share how you connect to the database and why you think “db” as hostname should work, your question only shows you have a connection error which may or may not be related to Docker.

1 Like