django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')
Django 2019. 7. 9. 17:06django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')
python3 manage.py migrate에서 에러뜨는 경우
아래 처럼 바꾸면 됩니다.
MariaDB [(none)]> ALTER DATABASE `데이터베이스명` CHARACTER SET utf8;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> exit
재실행하면 끝
'Django' 카테고리의 다른 글
Mnemonic code for generating deterministic keys, BIP39 (0) | 2019.07.31 |
---|---|
python secp256k1-py 오류 (0) | 2019.07.18 |
Oauth2 Django (0) | 2019.07.11 |