一、问题描述 Django中执行create database charset=utf8;命令报错:ERROR 1064 (42000): You have an error in your sql syntax; check the
一、问题描述
Django中执行create database charset=utf8;命令报错:ERROR 1064 (42000): You have an error in your sql syntax; check the manual that corresponds to your MySQL Server version for the right syntax to use near ‘=utf8‘ at line 1
二、问题原因
数据库名称没有用反引号引起来
三、解决方案
创建数据库时使用以下命令即可:
create ‘ database‘ charset=utf8;
DjanGo中创建数据库报错:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your Mysql server version for the right syntax to use near '=utf8' at line 1解决方案
--结束END--
本文标题: Django中创建数据库报错:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corre
本文链接: https://www.lsjlt.com/news/7288.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-16
2024-05-16
2024-05-16
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0