pastebin - collaborative debugging tool
hn.kpaste.net RSS


Untitled
Posted by NotLim on Tue 12th Nov 2013 19:58
raw | new post

  1. mysql> show full processlist;
  2. +-----+--------------+-----------+--------------+---------+------+----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  3. | Id  | User         | Host      | db           | Command | Time | State                | Info                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  4. +-----+--------------+-----------+--------------+---------+------+----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  5. |   1 | leechprotect | localhost | leechprotect | Sleep   |  491 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  6. | 701 | ag_user      | localhost | ag_portal    | Query   |    2 | Copying to tmp table | SELECT * FROM ag_category c LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id) LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '1102' AND cd.language_id = '1' AND c2s.store_id = '0'  AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  7. | 702 | ag_user      | localhost | ag_portal    | Sleep   |   46 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  8. | 716 | ag_user      | localhost | ag_portal    | Sleep   |   38 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  9. | 727 | ag_user      | localhost | ag_portal    | Query   |    0 | Sending data         | SELECT
  10.  max(pov.price) AS max_price,
  11.  p.product_id,
  12.  pov.price, p.`status`,
  13.  pov.quantity
  14.  FROM
  15.  ag_product AS p
  16.  Inner Join ag_product_to_category AS p2c ON p.product_id = p2c.product_id
  17.  Inner Join ag_product_option_value AS pov ON pov.product_id = p.product_id
  18.  Inner Join ag_option_value_description AS ovd ON pov.product_option_value_id = ovd.option_value_id
  19.  WHERE
  20.  p2c.category_id = 396
  21.  and pov.price <> 0
  22.  and p.`status` = 1
  23.  and pov.quantity > '2'                                                                                                                                                                                                                                                                                                                   |
  24. | 739 | ag_user      | localhost | ag_portal    | Sleep   |    0 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  25. | 742 | ag_user      | localhost | ag_portal    | Query   |    0 | Sending data         | SELECT
  26.  min(pov.price) AS min_price,
  27.  p.product_id,
  28.  pov.price, p.`status`,
  29.  pov.quantity
  30.  FROM
  31.  ag_product AS p
  32.  Inner Join ag_product_to_category AS p2c ON p.product_id = p2c.product_id
  33.  Inner Join ag_product_option_value AS pov ON pov.product_id = p.product_id
  34.  Inner Join ag_option_value_description AS ovd ON pov.product_option_value_id = ovd.option_value_id
  35.  WHERE
  36.  p2c.category_id = 1002
  37.  and pov.price <> 0
  38.  and p.`status` = 1
  39.  and pov.quantity > '2'                                                                                                                                                                                                                                                                                                                  |
  40. | 744 | ag_user      | localhost | ag_portal    | Sleep   |    0 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  41. | 745 | ag_user      | localhost | ag_portal    | Sleep   |    0 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  42. | 746 | ag_user      | localhost | ag_portal    | Sleep   |    0 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  43. | 747 | ag_user      | localhost | ag_portal    | Query   |    0 | Sending data         | SELECT * FROM ag_category c
  44.                                         LEFT JOIN ag_category_description cd ON
  45.                                 (c.category_id = cd.category_id) LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
  46.                         WHERE c.parent_id = '261'
  47.                         AND
  48.                         (
  49.                                 select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
  50.                                 and
  51.                                 (
  52.                                         select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
  53.                                         and ptc2.category_id = 1105
  54.                                         and
  55.                                         (
  56.                                                 select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2
  57.                                         )  > 0
  58.                                 ) > 0
  59.                         ) > 0
  60.                         AND cd.language_id = '1'
  61.                         AND c2s.store_id = '0'  
  62.                         AND c.status = '1'
  63.                         ORDER BY c.sort_order, LCASE(cd.name) |
  64. | 748 | ag_user      | localhost | ag_portal    | Query   |    1 | Sending data         | SELECT * FROM ag_category c
  65.                                         LEFT JOIN ag_category_description cd ON
  66.                                 (c.category_id = cd.category_id) LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
  67.                         WHERE c.parent_id = '261'
  68.                         AND
  69.                         (
  70.                                 select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
  71.                                 and
  72.                                 (
  73.                                         select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
  74.                                         and ptc2.category_id = 1105
  75.                                         and
  76.                                         (
  77.                                                 select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2
  78.                                         )  > 0
  79.                                 ) > 0
  80.                         ) > 0
  81.                         AND cd.language_id = '1'
  82.                         AND c2s.store_id = '0'  
  83.                         AND c.status = '1'
  84.                         ORDER BY c.sort_order, LCASE(cd.name) |
  85. | 750 | ag_user      | localhost | ag_portal    | Sleep   |    0 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  86. | 751 | root         | localhost | NULL         | Query   |    0 | NULL                 | show full processlist                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
  87. | 752 | ag_user      | localhost | ag_portal    | Sleep   |    7 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  88. | 753 | ag_user      | localhost | ag_portal    | Sleep   |    6 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  89. | 754 | ag_user      | localhost | ag_portal    | Sleep   |    6 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  90. | 755 | ag_user      | localhost | ag_portal    | Sleep   |    0 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  91. | 756 | ag_user      | localhost | ag_portal    | Sleep   |    0 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  92. | 757 | ag_user      | localhost | ag_portal    | Sleep   |    0 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  93. | 758 | ag_user      | localhost | ag_portal    | Sleep   |    5 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  94. | 759 | ag_user      | localhost | ag_portal    | Sleep   |    5 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  95. | 760 | ag_user      | localhost | ag_portal    | Sleep   |    5 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  96. | 761 | ag_user      | localhost | ag_portal    | Sleep   |    4 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  97. | 762 | ag_user      | localhost | ag_portal    | Sleep   |    3 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  98. | 763 | ag_user      | localhost | ag_portal    | Sleep   |    3 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  99. | 764 | ag_user      | localhost | ag_portal    | Sleep   |    3 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  100. | 765 | ag_user      | localhost | ag_portal    | Sleep   |    2 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  101. | 766 | ag_user      | localhost | ag_portal    | Sleep   |    2 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  102. | 767 | ag_user      | localhost | ag_portal    | Sleep   |    2 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  103. | 768 | ag_user      | localhost | ag_portal    | Sleep   |    1 |                      | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  104. +-----+--------------+-----------+--------------+---------+------+----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  105. 31 rows in set (0.00 sec)
  106.  
  107. mysql>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at