问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
df.to_sql(name='eeshoufang', con=conn, if_exists='append', index=False, index_label=False)#df_out是处理好的数据
运行结果及报错内容
发生异常: OperationalError
(pymysql.err.OperationalError) (1193, "Unknown system variable 'transaction_isolation'")
(Background on this error at: https://sqlalche.me/e/14/e3q8)
File "C:\Users\86177\Desktop\爬虫\58二手房.py", line 42, in
df.to_sql(name='eeshoufang', con=conn, if_exists='append', index=False, index_label=False)#df_out是处理好的数据