lazzyfu / goInsight

集MySQL数据库工单和数据查询的Web平台

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python manage.py migrate建表结构报错

Fronthyf opened this issue · comments

image
报:ImportError: cannot import name 'charset_to_encoding'

请指定库的字符集为utf8或utf8mb4
比如:CREATE DATABASE test CHARACTER SET utf8

请指定库的 字符集为utf8或utf8mb4
:创建数据库test字符集utf8

image
shu'ju'k数据库的字符集是对的

看报错是pymysql的导入问题,你google查查,暂时没遇到