随笔分类 -  MySQL

该文被密码保护。
posted @ 2024-03-06 12:55 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2023-11-11 17:38 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:mysql: show full processlist 详解 show full processlist 是显示用户正在运行的线程 show processlist 显示的信息都是来自MySQL系统库 information_schema 中的 processlist 表 select * fro 阅读全文
posted @ 2022-11-22 17:27 Peter.Jones 阅读(560) 评论(0) 推荐(0) 编辑
摘要:开启连接泄露检测: removeAbandoned=true 一旦开启,CreateConnectionThread 线程就会每隔 timeBetweenEvictionRunsMillis 毫秒轮询一次, 检测是否存在 running=false 且 空闲时间超过 removeAbandonedT 阅读全文
posted @ 2022-11-20 14:46 Peter.Jones 阅读(1302) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-11-08 10:56 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-10-25 10:46 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:索引失效 EXPLAIN SELECT dt.name AS deviceName, su.`name` AS userName, date_format(co.upload_time, '%Y%m%d') as time FROM tb_cust_order co INNER JOIN sys_u 阅读全文
posted @ 2022-09-21 17:51 Peter.Jones 阅读(325) 评论(0) 推荐(0) 编辑
摘要:https://www.begtut.com/mysql/mysql-update-join.html 阅读全文
posted @ 2022-09-08 14:47 Peter.Jones 阅读(23) 评论(0) 推荐(0) 编辑
摘要:场景1 : 更新cjq表的一个字段,发现执行时间半个小时以上还没执行结束 UPDATE t_hplc_cjq SET cjq_type=2 WHERE cjq_type IS NULL AND id IN ( SELECT cjq_id FROM t_hplc_family_import GROUP 阅读全文
posted @ 2022-08-25 13:54 Peter.Jones 阅读(833) 评论(1) 推荐(0) 编辑
摘要:官网:https://dev.mysql.com/doc/refman/8.0/en/performance-schema-processlist-table.html interactive_timeout:交互式连接超时时间(mysql工具、mysqldump等)wait_timeout:非交互 阅读全文
posted @ 2022-08-15 13:34 Peter.Jones 阅读(11) 评论(0) 推荐(0) 编辑
摘要:官方文档解释: https://dev.mysql.com/doc/refman/8.0/en/kill.html 优秀博客:https://cloud.tencent.com/developer/article/1815896 阅读全文
posted @ 2022-08-14 22:21 Peter.Jones 阅读(185) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-08-11 00:57 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-06-18 23:49 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:官方文档:json相关函数 https://dev.mysql.com/doc/refman/5.7/en/json-creation-functions.html https://dev.mysql.com/doc/refman/5.7/en/json-attribute-functions.ht 阅读全文
posted @ 2022-03-05 12:21 Peter.Jones 阅读(169) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-01-05 20:24 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2021-12-06 11:35 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/zhouzezhou/article/details/52446608 给root用户赋权限: grant all privileges on *.* to root@"%" identified by "."; flush privileges; 阅读全文
posted @ 2021-10-13 13:58 Peter.Jones 阅读(22) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2021-09-03 10:38 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2021-09-02 18:05 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:官方文档: https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-replace MySQL里的json分为json array和json object。 $表示整个json对象, 阅读全文
posted @ 2021-08-17 10:22 Peter.Jones 阅读(4269) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示