gpt4 book ai didi

python - django.db.utils.OperationalError : (2003, "Can' t 连接到 '127.0.0.1' (111) 上的 MySQL 服务器”

转载 作者:行者123 更新时间:2023-11-29 16:24:37 26 4
gpt4 key购买 nike

我已经在 Ubuntu 服务器上正确安装了 NGINX、GUNICORN 和我的项目,但是当我使用运行项目时python manage.py runserver,出现以下错误;

django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (111)"

在安装gunicorn之前,我的网站在my_public_ip_address:8000处正常运行

最佳答案

检查你的mysql服务器是否正在运行重启mysql服务器

关于python - django.db.utils.OperationalError : (2003, "Can' t 连接到 '127.0.0.1' (111) 上的 MySQL 服务器”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54312110/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com