报错详情org.springframework.dao.DataIntegrityViolationException: ### Error updating database. Cause: java.sql.SQLException: Data truncated for column 'use ...
分类:
数据库 时间:
2020-07-04 15:34:17
阅读次数:
221
背景 最近生产爆出一条慢sql,原因是用了or和!=,导致索引失效。于是,总结了索引失效的十大杂症,希望对大家有帮助,加油。 一、查询条件包含or,可能导致索引失效 新建一个user表,它有一个普通索引userId,结构如下: CREATE TABLE `user` ( `id` int(11) N ...
分类:
数据库 时间:
2020-07-04 15:32:38
阅读次数:
79
mysql> start slave; ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository 处理一则MySQL Slave环境出现ERROR 1201 (HY000): ...
分类:
数据库 时间:
2020-07-04 15:31:50
阅读次数:
81
启动kafka时,kafka进程无法启动,查阅log发现存在如下问题: 2020-07-04 10:44:54,659] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServ ...
分类:
其他好文 时间:
2020-07-04 15:27:07
阅读次数:
53
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v\4.0\V140\Application Type\Linux\1.0\Linux.targets(248 ,5): error : unrecognized command line opton "-st ...
分类:
编程语言 时间:
2020-07-04 15:25:42
阅读次数:
70
本文不涉及复杂的底层数据结构,通过explain解释SQL,并根据可能出现的情况,来做具体的优化,使百万级、千万级数据表关联查询第一页结果能在2秒内完成(真实业务告警系统优化结果)。 希望读者能够理解SQL的执行过程,并根据过程优化,走上自己的"成金之路" 需要优化的查询: 使用explain出现了 ...
分类:
数据库 时间:
2020-07-04 15:20:34
阅读次数:
97
Nginx日志配置 参考文档:Nginx基本配置和日志处理 Nginx 日志配置不同位置的不同含义: 在 nginx 配置文件的最外层,我们可以配置 error_log,这个 error_log 能够记录 nginx 启动过程中的异常,也能记录日常访问过程中遇到的错误。 在 http 段中可以配置 ...
分类:
其他好文 时间:
2020-07-04 15:02:45
阅读次数:
52
在执行 pip install 时遇到错误:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ...
分类:
编程语言 时间:
2020-07-04 13:51:56
阅读次数:
525
excepInfo: select id,describe from iwebshop_student_problem where id=256 order by id desc -- You have an error in your SQL syntax; check the manual th ...
分类:
数据库 时间:
2020-07-04 13:48:09
阅读次数:
75
df.replace(to_place='',value='',inplace=)df.replace(to_replace='浪漫情侣',value='情侣') 1 香港碧荟酒店(The BEACON) 商务出行 香港 油尖旺 九龙旺角洗衣街88号 4.7 328 747.0 2 香港湾仔帝盛酒店 ...
分类:
其他好文 时间:
2020-07-04 13:27:09
阅读次数:
72