摘要:
MySQL查看锁的sql 查看数据库状态 # 会显示加锁的信息等等 show engine innodb status; 查看正在执行的线程信息 show full processlist; 查看正在锁的表 show open tables where in_use > 0; show open t 阅读全文
摘要:
sql如下: update pay_trans set return_state = 1 WHERE order_id = #{orderId} and user_id = #{userId} 批量执行此条sql时,导致数据表被锁,所有交易异常。 经排查where条件order_id and use 阅读全文
摘要:
# 查看最大错误连接数限制 show global variables like 'max_connect_errors'; # 查看连接IP select * from performance_schema.host_cache # 刷新数据库IP缓存 flush hosts # 查看连接 SEL 阅读全文