This is how the config.py file looks like (truncated the bottom parts of the file)
What I have done is use the following format as was in the config.py file.
DATABASE_URL = 'mysql://**debian-sys-maint**:**5oCNi3MRmSXRxJFI**@localhost/throat'
DBUSER in this case is debian-sys-maint
PASSWORD is 5oCNi3MRmSXRxJFI
Not sure if I'm doing this right. Since the config.py is the latest version, thought of keeping it this way to connect to the database (based on the example.config.py file).
My config.py file btw.
""" This is the config file. Pretty obvious, right? """
import os
# Site title
LEMA = "Throat: Open discussion ;D"
# Copyright notice, used in the footer
COPY = "2016 Throat. All Rights Reserved."
# Database connection information
DATABASE_URL = 'mysql://debian-sys-maint:5oCNi3MRmSXRxJFI@localhost/throat'
# Method used to memoize stuff. Change to 'redis' if you use Redis
CACHE_TYPE = 'simple'
# Only used if CACHE_TYPE is 'redis'.
CACHE_REDIS_HOST = '127.0.0.1'
CACHE_REDIS_PORT = 6379
CACHE_REDIS_DB = 5
....
OK, it's your DATABASE_URL
line. That was changed when we started supporting multiple database types. The new format, given your information...
DATABASE = {
'host': 'localhost',
'name': 'throat',
'engine': 'MySQLDatabase',
'user': 'debian-sys-maint',
'password': '5oCNi3MRmSXRxJFI',
}
EDIT: See this guide that covers all the database types: https://pastebin.com/zFfLuMV6
The options for "engine" are: PostgresqlDatabase, MySQLDatabase, SqliteDatabase
I'm mostly putting this info here in case anybody looks in a search engine, it's outside of your scope.
Arrr. Spoke too soon! Running ./migrate.py is throwing up the following. I'm embarrassing myself here.
Database connection error? Any ideas @E-werd?