Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

创建数据库记得使用字符呀,不然会报错 #21

Open
cypggs opened this issue Jul 24, 2019 · 0 comments
Open

创建数据库记得使用字符呀,不然会报错 #21

cypggs opened this issue Jul 24, 2019 · 0 comments

Comments

@cypggs
Copy link

cypggs commented Jul 24, 2019

create database fms DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

报错如下
File "/usr/lib64/python3.6/site-packages/MySQLdb/connections.py", line 224, in query
_mysql.connection.query(self, query)
django.db.utils.OperationalError: (1366, "Incorrect string value: '\xE6\x9F\xA5\xE7\x9C\x8B...' for column 'name' at row 1")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant