Home >Database >Mysql Tutorial >查询当前持有锁的sql_MySQL

查询当前持有锁的sql_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:37:411207browse

bitsCN.com


查询当前持有锁的sql

 

1. mysqladmin -u user1 -p debug

2. 进mysql

        mysql> SHOW VARIABLES LIKE 'log_error'; 

 查看错误日志文件位置

  查看日志的最后部分,locked 那个,前面数字是id

 

3. mysqladmin processlist  ,找对应的 id

 

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn