系统吧 专业的电脑操作系统,支持重装各种原版系统xp/win7/win8/win10 这个系统怎么样?试试系统吧系统,体验办公系统畅快愉悦感。 各种电脑系统安装过程一样,神一般的畅快!
-->
当前位置:主页 > win10 >

MySQL死锁检查处理的正常方法(2)

作者:孙紫潇 分类:win10 发布时间:2021-07-25 09:32:00

+ -------------------+-------------------+-----------------+------------------+ | requesting_trx_id | requested_lock_id | blocking_trx_id | blocking_lock_id | + -------------------+-------------------...

+-------------------+-------------------+-----------------+------------------+| requesting_trx_id | requested_lock_id | blocking_trx_id | blocking_lock_id |+-------------------+-------------------+-----------------+------------------+| 130718499   | 130718499:65:3:4 | 130718500  | 130718500:65:3:4 |+-------------------+-------------------+-----------------+------------------+    #查看当前未提交的事务(如果死锁等待超时,事务可能还没有关闭)mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_TRX;+--------------------------------------------------------------------------------------------------------+| trx_id | trx_state | trx_started   | trx_requested_lock_id | trx_wait_started | trx_weight |+-----------+-----------+---------------------+-----------------------+---------------------+------------+| 130718500 | RUNNING | 2018-03-12 09:28:10 | NULL     | NULL    |   3 || 130718499 | LOCK WAIT | 2018-03-12 09:27:59 | 130718499:65:3:4  | 2018-03-12 09:32:48 |   5 |==========================================================================================================| trx_mysql_thread_id | trx_query        | trx_operation_state | trx_tables_in_use |+---------------------+---------------------------------------+---------------------+-------------------+|     4 | NULL         | NULL    |     0 ||     5 | update bb set name='bbb'    | starting index read |     1 |=========================================================================================================| trx_tables_locked | trx_lock_structs | trx_lock_memory_bytes | trx_rows_locked | trx_rows_modified |+-------------------+------------------+-----------------------+-----------------+-------------------+|     0 |    2 |     360 |    3 |     1 ||     1 |    4 |     1184 |    4 |     1 |===========================================================================================================================| trx_concurrency_tickets | trx_isolation_level | trx_unique_checks | trx_foreign_key_checks | trx_last_foreign_key_error |+-------------------------+---------------------+-------------------+------------------------+----------------------------+|      0 | REPEATABLE READ  |     1 |      1 | NULL      ||      0 | REPEATABLE READ  |     1 |      1 | NULL      |===========================================================================================================================| trx_adaptive_hash_latched | trx_adaptive_hash_timeout | trx_is_read_only | trx_autocommit_non_locking |+---------------------------+---------------------------+------------------+----------------------------+|       0 |      10000 |    0 |       0 ||       0 |      10000 |    0 |       0 |+---------------------------+---------------------------+------------------+----------------------------+    #查看正在被访问的表mysql> show OPEN TABLES
xp 更多>>
win7 更多>>
win8 更多>>
win10 更多>>
U盘 更多>>
电脑技术 更多>>
网站地图 | 豫ICP备2021035069号-4 | 友情链接qq:191064436
系统吧

版权所有 © 2012-2023 系统吧 免责声明:本站资源均收集于互联网,其著作权归原作者所有,如果有侵犯您权利的资源,请来信告知,我们将及时删除相应资源。