{
  "slug": "mysql-find-long-running-queries",
  "title": "Find Long-Running MySQL Queries",
  "fixture": "containers/db-first-response-lab",
  "command_count": 3,
  "container_tool": "docker",
  "image": "localhost/linuxoneliners-lab:latest",
  "exit_code": 0,
  "elapsed_ms": 194,
  "stdout": "::fixture-ready::\n$ mysql -e \"show processlist;\"\nId\tUser\tHost\tdb\tCommand\tTime\tState\tInfo\n17\tapp\t10.0.0.12\tshop\tQuery\t91\tSending data\tselect * from orders\n18\tapp\t10.0.0.13\tshop\tSleep\t20\t\tNULL\n22\treport\t10.0.0.30\tanalytics\tQuery\t680\tCopying to tmp table\tselect customer_id\n::exit-code::0\n$ mysql -e \"select id,user,host,db,command,time,state,left(info,80) as info from information_schema.processlist where command <> 'Sleep' order by time desc limit 10;\"\nid\tuser\thost\tdb\tcommand\ttime\tstate\tinfo\n22\treport\t10.0.0.30\tanalytics\tQuery\t680\tCopying to tmp table\tselect customer_id, sum(total) from orders\n17\tapp\t10.0.0.12\tshop\tQuery\t91\tSending data\tselect * from orders join order_items\n::exit-code::0\n$ mysql -e \"select command, count(*) from information_schema.processlist group by command;\"\ncommand\tcount(*)\nQuery\t2\nSleep\t1\n::exit-code::0\n",
  "stderr": "",
  "ok": true,
  "security": {
    "network": "none",
    "capabilities": "dropped",
    "no_new_privileges": true,
    "memory": "256m",
    "cpus": "1",
    "pids_limit": 128,
    "tmpfs": [
      "/tmp",
      "/var"
    ]
  }
}