首页IT科技setting that(Setting Django/MySQL site to use UTF8 Stack Overflow)

setting that(Setting Django/MySQL site to use UTF8 Stack Overflow)

时间2025-05-04 13:07:33分类IT科技浏览2890
导读:All I had to do was put this insettings.py: OPTIONS...

All I had to do was put this insettings.py:

OPTIONS:{init_command:SET storage_engine=INNODB}

Then I created the database myself in MySQL with:

CREATEDATABASE my_database CHARACTER SET utf8;

followed by all theCREATE USERandGRANTcalls.

After that,./manage.py syncdband./manage.py migrate(since I use South) finished everything up.

Its been working fine so far. Didnt have to change any MySQL config files,

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
linux查看分区格式命令(Linux与grub下如何查看各分区设备名称?)