摘要: MySQL server has gone away 该错误为导入较大SQL文件出现的 解决办法: 查看接受包的大小 show variables like '%max_allowed_packet%' 修改接受包的大小为1G set global max_allowed_packet = 1024 阅读全文
posted @ 2020-10-24 17:00 Maggieq8324 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 最近需要读取excel中的数据写入数据库,记录一下: my.py # -*- coding:utf-8 -*- import numpy as np import xlrd #打开excel文件 # 拼接字符串函数 def editstr(row): values = "("; for i in r 阅读全文
posted @ 2020-10-24 15:47 Maggieq8324 阅读(656) 评论(0) 推荐(0) 编辑