我正在用pythonywhere部署带有MySQL数据库的django网站,它的链接是-http://drchitradhawle.pythonanywhere.com/,但是在运行命令时
python manage.py migrate
我的bash出现了以下错误-
在django.db.utils。操作错误:(1045,“拒绝用户'DrChitraDhawle'@'ip-10-181-125-22.ec2.internal'(使用密码:YES)”)
settings.py file is-
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'django _db',
'USER': 'DrChitraDhawle',
'PASSWORD': 'r.....6',
'HOST': 'mysql.server',
'PORT': '',
}
}
pythonywhere中的数据库设置是-
{1美元^
Note:- I have just created the database name from Database tab, but not created the actual database anywhere ie. i have not created any table as i dont know where to create.
数据库名称错误。名字列在你提供的屏幕截图中。我猜你想要的是
DrChitraDhawle$django_db
相关问题 更多 >
编程相关推荐