随笔分类 - MySQL
摘要:mysql: show full processlist 详解 show full processlist 是显示用户正在运行的线程 show processlist 显示的信息都是来自MySQL系统库 information_schema 中的 processlist 表 select * fro
阅读全文
摘要:开启连接泄露检测: removeAbandoned=true 一旦开启,CreateConnectionThread 线程就会每隔 timeBetweenEvictionRunsMillis 毫秒轮询一次, 检测是否存在 running=false 且 空闲时间超过 removeAbandonedT
阅读全文
摘要:索引失效 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
阅读全文
摘要:https://www.begtut.com/mysql/mysql-update-join.html
阅读全文
摘要:场景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
阅读全文
摘要:官网:https://dev.mysql.com/doc/refman/8.0/en/performance-schema-processlist-table.html interactive_timeout:交互式连接超时时间(mysql工具、mysqldump等)wait_timeout:非交互
阅读全文
摘要:官方文档解释: https://dev.mysql.com/doc/refman/8.0/en/kill.html 优秀博客:https://cloud.tencent.com/developer/article/1815896
阅读全文
摘要:官方文档: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
阅读全文
该文被密码保护。
摘要:https://blog.csdn.net/zhouzezhou/article/details/52446608 给root用户赋权限: grant all privileges on *.* to root@"%" identified by "."; flush privileges;
阅读全文
摘要:官方文档: https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_json-replace MySQL里的json分为json array和json object。 $表示整个json对象,
阅读全文