Specify character set in database to avoid key length errors.

Default database setting uncommented.

Addresses #985
This commit is contained in:
Adarnof 2018-02-27 19:53:54 -05:00
parent cc8a7a18d2
commit 9d9cfebd9e
2 changed files with 2 additions and 5 deletions

View File

@ -22,9 +22,7 @@ INSTALLED_APPS += [
] ]
# Uncomment by removing the """ and change the database name and # Enter credentials to use MySQL/MariaDB. Comment out to use sqlite3
# credentials to use MySQL/MariaDB. Leave commented to use sqlite3
"""
DATABASES['default'] = { DATABASES['default'] = {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'NAME': 'alliance_auth', 'NAME': 'alliance_auth',
@ -33,7 +31,6 @@ DATABASES['default'] = {
'HOST': '127.0.0.1', 'HOST': '127.0.0.1',
'PORT': '3306', 'PORT': '3306',
} }
"""
# Register an application at https://developers.eveonline.com for Authentication # Register an application at https://developers.eveonline.com for Authentication
# & API Access and fill out these settings. Be sure to set the callback URL # & API Access and fill out these settings. Be sure to set the callback URL

View File

@ -66,7 +66,7 @@ CentOS:
Alliance Auth needs a MySQL user account and database. Open an SQL shell with `mysql -u root -p` and create them as follows, replacing `PASSWORD` with an actual secure password: Alliance Auth needs a MySQL user account and database. Open an SQL shell with `mysql -u root -p` and create them as follows, replacing `PASSWORD` with an actual secure password:
CREATE USER 'allianceserver'@'localhost' IDENTIFIED BY 'PASSWORD'; CREATE USER 'allianceserver'@'localhost' IDENTIFIED BY 'PASSWORD';
CREATE DATABASE alliance_auth; CREATE DATABASE alliance_auth CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON alliance_auth . * TO 'allianceserver'@'localhost'; GRANT ALL PRIVILEGES ON alliance_auth . * TO 'allianceserver'@'localhost';
Close the SQL shell and secure your database server with the `mysql_secure_installation` command. Close the SQL shell and secure your database server with the `mysql_secure_installation` command.