我不断收到经典1045, "Access denied for user 'user'@'localhost' (using password: YES)"
错误。 settings.py的已编辑部分看起来像这样
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mydatabase',
'USER': 'user',
'PASSWORD': '*******',
'HOST': 'localhost',
'PORT': '3306',
}
}
我也试过'HOST': '127.0.0.1'
。密码与通过通告程序启动服务器并在Workbench中检查其状态时输入的密码相同,是否正确?
更新:此线程基本上导致this thread,其中扭结得出结论。