The right way to create database for Django - collation error
Aug 04, 2020 | 997 views
The right way to create a database
Refer to
When creating a new database, remember to create with the right collate settings:
CREATE DATABASE foo CHARACTER SET utf8 COLLATE utf8_general_ci;
Change MySQL default character set to UTF-8 in my.cnf?
Error Number: 1267
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
Solutions refer to :
config on /etc/my.cnf[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8