Reputation:
I have tried dropping all users and databases and re-creating. I have granted all privileges to my user. I have made sure my settings.py includes the correct setup... for the record here is what I have:
DIR_FOR_DB = '/path/to/'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': DIR_FOR_DB+ 'Database',
'USER': 'someuser',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '',
}
}
I can't think of any reason why it's not letting me in.
Upvotes: 2
Views: 1199
Reputation: 459
Try this:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'Database',
'USER': 'someuser',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '8000',
You need to specify a port and not have a path on the database name.
Upvotes: 2