django.db.utils.operationalerror: (2002, "can't connect to local mysql server through socket '/var/run/mysqld/mysqld.sock' (2)") code example
Example: django.db.utils.operationalerror: (2002, "can't connect to local mysql server through socket '/var/run/mysqld/mysqld.sock' (2)")
db:
image: mariadb
ports:
- 3306:3306
environment:
MYSQL_USER: "****"
MYSQL_PASSWORD: "****"
MYSQL_DATABASE: "*****"
MYSQL_RANDOM_ROOT_PASSWORD: "yes"