zoukankan      html  css  js  c++  java
  • 数据库锁表问题

    -- 查询数据库最大连接数

    show variables like "max_connections";
    -- 
    show full processlist;

    show processlist;


    select *from performance_schema.events_statements_current;

    -- 查询上锁的语句
    SELECT * FROM information_schema.innodb_trx;

    -- 锁等待查询
    select * from information_schema.innodb_lock_waits G;

    select * from information_schema.innodb_locks G;

    找到锁表的语句直接kill掉该进程ID

  • 相关阅读:
    CF1037H
    CF1296F
    CF1446F
    CF1175G
    CF1146G
    CF1303G
    CF1067D
    CF1477E
    COJ16G
    ZJOI2018 迷宫
  • 原文地址:https://www.cnblogs.com/gcixx/p/11145434.html
Copyright © 2011-2022 走看看