Exception Type: OperationalError at / Exception Value: (1049, "Unknown database 'database'")
Currently I have tried this:
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'database', # Or path to database file if using sqlite3. 'USER': 'root', # Not used with sqlite3. 'PASSWORD': '****', # Not used with sqlite3. 'HOST': '/var/lib/mysql/database/', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '80', # Set to empty string for default. Not used with sqlite3. } }
If I do not specify the host, I get this error:
OperationalError at / (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/database' (13)")
Could there be something with permissions?
early:)
source share