如何在mysql“show processlist”中显示整个查询?

时间:2011-04-27 00:38:18

标签: mysql

输出的Info字段会被截断很多。如何强制mysql显示正在处理的整个查询?

$ mysql -uroot -e 'show processlist\G'
*************************** 1. row ***************************
     Id: 2672
   User: root
   Host: localhost
     db: plummelo_development
Command: Query
   Time: 173
  State: Copying to tmp table
   Info: SELECT SQL_NO_CACHE `recipes`.`id` * 2 + 0 AS `id` , `recipes`.`title` AS `title`, GROUP_CONCAT(DIST

1 个答案:

答案 0 :(得分:6)

使用SHOW FULL PROCESSLIST

mysql -uroot -e 'show full processlist\G'