![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
项目中问题
个人在项目中遇到的问题的解决过程
别管我叫啥
这个作者很懒,什么都没留下…
展开
-
minikube start --driver=hyperv
win10 在执行`minikube start`中,出现这种请款说明无法利用windowsStartHost failed, but will try again: creating host: create: precreate: Hyper-V PowerShell Module is not availableStartHost failed, but will try again: creating host: create: precreate: Hyper-V PowerShell原创 2021-08-09 17:18:34 · 610 阅读 · 0 评论 -
[ERROR] Slave SQL for channel ‘‘: Could not execute Write_rows event on table xxx.xxx; Duplicate ent
环境:centos7 , MySQL5.7一主一从背景:从上用xtrabackup物理恢复后,感觉gtid相差不大,直接change master to master_host........问题:从上数据恢复一段时间后,gtid增加到某个值时,从库报错,从上错误日志显示:[ERROR] Slave SQL for channel '': Could not execute Write_rows event on table xxx.xxx; Duplicate entry 'xxxxxx' for原创 2020-08-14 17:56:30 · 8131 阅读 · 3 评论 -
导出当天MySQL的slow-log慢日志,并统计进excel
最近业务访问量比较大,而且有些查询很慢很慢,所以业务那边需要优化sql语句。作为支撑人员,就要提供相应的信息,比如每天的slow sql 。我们数据库上的慢日志是全部存在一个单独的文件中的,xxxxx-slow.log。要获取每天的slow log日志,就要用到sed提取出来:sed -n '/2020-08-13T00/,/2020-08-14T00:00/p' xxxxx-slow.log > 20200813.log 20200813.log就是我们今天记录的慢日志...原创 2020-08-13 19:54:02 · 1564 阅读 · 0 评论