摘要:
使用mysql将同一数据库的表格数据(根据条件筛选的部分数据)转换到当前数据库下另一个表格中,使用了插入和删除操作,由于数据量较大导致报错:1206 - The total number of locks exceeds the lock table size 解决方案: 在进入MySQL命令行控制 阅读全文
摘要:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 48: ordinal not in range(128) url = 'http://gasssmes.sgerisssnssssass.cssn/pc/new 阅读全文
摘要:
1. 问题描述: 往MySQL批量插入数据,一次插入六万行数据,大约是一个6M的json文件,然后报错 2006, 'MySQL server has gone away' 解决方法: 1. 执行命令 show global variables like 'max_allowed_packet'; 阅读全文
摘要:
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{Mln3wtAkTMCwR_z9QIv-tA}{20.0 阅读全文
摘要:
from lxml import etree html = "需要解析的网页" html = etree.HTML(html) #获取所有的href属性 url_list = html.xpath("//*/@href") for url in url_list: print(url) 阅读全文