{"id":22425,"date":"2026-01-09T10:56:27","date_gmt":"2026-01-09T16:56:27","guid":{"rendered":"https:\/\/sada.services\/?p=22425"},"modified":"2026-01-09T10:56:27","modified_gmt":"2026-01-09T16:56:27","slug":"cgi-ver-bloqueo-innobd-agd","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=22425","title":{"rendered":"CGI: Ver bloqueo INNOBD AGD"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li>Version mysql<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT VERSION();<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Obtener log de los bloqueos<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>SHOW ENGINE INNODB STATUS;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Consultar tiempo de innobd<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>SHOW VARIABLES LIKE 'innodb_lock_wait_timeout';<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ver los bloqueos<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>-- Ver bloqueos de forma m\u00e1s clara con sys schema\nSELECT \n    r.trx_id AS waiting_trx_id,\n    r.trx_mysql_thread_id AS waiting_thread,\n    r.trx_query AS waiting_query,\n    r.trx_state,\n    TIMESTAMPDIFF(SECOND, r.trx_wait_started, NOW()) AS wait_seconds\nFROM performance_schema.data_lock_waits w\nJOIN information_schema.innodb_trx r ON r.trx_id = w.REQUESTING_ENGINE_TRANSACTION_ID\nORDER BY wait_seconds DESC;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-22425","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/22425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22425"}],"version-history":[{"count":1,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/22425\/revisions"}],"predecessor-version":[{"id":22426,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/22425\/revisions\/22426"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}