
数据库Mysql
落凡尘.
So far so good.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Mysql AttributeError: module 'MySQLdb' has no attribute 'connect'报错原因以及解决方法
整个暑假都在弄爬虫,想做个完整的项目,重新学习大二上学期的Mysql数据库,用python运行MySQL库的时候报错:AttributeError: module 'MySQLdb' has no attribute 'connect'原因:因为.py文件和库的名字一样,会报错解决方法:命名py脚本时,不要与python预留字,模块名等相同 ...原创 2018-08-27 09:58:19 · 10189 阅读 · 0 评论 -
Python3 使用Mysqldb报错解决方案1064, "You have an error in your SQL syntax; check the manual that correspond
报错样例:往mysql中的表插入数据的时候就爆下面错误in query _mysql.connection.query(self, query)_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds t...原创 2018-09-08 14:37:18 · 10889 阅读 · 2 评论 -
python3.6 使用 pymysql 连接 Mysql 数据库及 简单的增删改查操作
最近重新学习大二上的数据库,然后用python操作数据库,就想知道基本的操作增删改差,写出来,参考别人已有的,自己动手实现一波~首先你得有已经安装了mysql数据库!!这里有完整mysql教程:https://www.runoob.com/mysql/mysql-tutorial.html其次需要自己自己先安装 pymysql,pipinstqllpymysql实现增删改查需...原创 2018-09-11 08:57:23 · 1428 阅读 · 0 评论 -
flask_sqlalchemy 利用sqlalchemy模型在mysql创建表错误
最近在学flask(小巧网站搭建的第三方python库),连接mysql后,报如下错误:sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1142, "REFERENCES command denied to user 'gust'@'localhost' for table 'authors'"...原创 2018-10-10 20:27:17 · 1786 阅读 · 0 评论 -
Mysql报错:corresponds to your MySQL server version for the right syntax to use near ')'
以前写爬虫入库的时候,入库爆错了一次类似的,这次报错如下:raise_mysql_exception raise errorclass(errno, errval)pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds ...原创 2019-03-12 10:40:01 · 76629 阅读 · 11 评论