mysql数据库查看进程
用下面命令可以查询到进程的状态,包含running(运行),lock_wait(锁住),可以显示出是具体哪个数据库的命令
SELECT t.trx_id,t.trx_state, t.trx_started, t.trx_mysql_thread_id, p.user, p.host,p.db, p.command, p.time, p.state,p.info
FROM information_schema.innodb_trx t
JOIN information_schema.processlist p ON t.trx_mysql_thread_id = p.id ORDER BYt.trx_id ASC;
根据trx_mysql_thread_id杀死进程
KILL 453299