Django 无法连接本地 MySQL

本地用 Docker 跑了一个 MySQL, 使用 Django 连接 MySQL 报错:
django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)")

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×