pastebin - collaborative debugging tool
hn.kpaste.net RSS


Untitled
Posted by NotLim on Wed 8th Jan 2014 16:20
raw | new post

  1. mysql> show full processlist;
  2. +-------+---------+---------------------+-----------+---------+------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
  3. | Id    | User    | Host                | db        | Command | Time | State        | Info                                                                                                                                                 |
  4. +-------+---------+---------------------+-----------+---------+------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
  5. | 92189 | ag_user | 186.67.142.99:56966 | NULL      | Sleep   | 5380 |              | NULL                                                                                                                                                 |
  6. | 92191 | ag_user | 186.67.142.99:56968 | ag_portal | Sleep   | 2821 |              | NULL                                                                                                                                                 |
  7. | 93867 | ag_user | 186.67.142.99:58115 | ag_portal | Sleep   | 3877 |              | NULL                                                                                                                                                 |
  8. | 94260 | ag_user | 186.67.142.99:58647 | ag_portal | Sleep   | 3552 |              | NULL                                                                                                                                                 |
  9. | 94628 | ag_user | 186.67.142.99:58872 | ag_portal | Sleep   | 3293 |              | NULL                                                                                                                                                 |
  10. | 95195 | ag_user | 186.67.142.99:59223 | ag_portal | Sleep   | 2821 |              | NULL                                                                                                                                                 |
  11. | 98565 | root    | localhost           | NULL      | Query   |    0 | NULL         | show full processlist                                                                                                                                |
  12. | 98607 | ag_user | localhost           | ag_portal | Sleep   |    0 |              | NULL                                                                                                                                                 |
  13. | 98609 | ag_user | localhost           | ag_portal | Query   |    1 | Sending data | SELECT * FROM ag_category c
  14.                         LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
  15.                         LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
  16.                         WHERE c.parent_id = '275'
  17.                         AND
  18.                         (
  19.                                 select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
  20.                                 and
  21.                                 (
  22.                                         SELECT COUNT(*) FROM ag_product p WHERE p.manufacturer_id = 45
  23.                                         AND p.product_id = ptc1.product_id AND p.status = '1'
  24.                                 ) > 0
  25.                         ) > 0
  26.                         AND cd.language_id = '1'
  27.                         AND c2s.store_id = '0'  
  28.                         AND c.status = '1'
  29.                         ORDER BY c.sort_order, LCASE(cd.name)                                                                                                                                                                              |
  30. | 98610 | ag_user | localhost           | ag_portal | Query   |    0 | Sending data | SELECT * FROM ag_category c
  31.                                                 LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
  32.                                                 LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
  33.  
  34.                                 WHERE c.parent_id in (1502,1510,1519,1521,1641,1526,1530,1535,1539,1544,1552,1554,1557,1565,1569,1571,1574,1575,1576,1577,1578,1579,1583,1584,1585,1586,1587,1589,1590,1592,1594,1595,1597,1598,1600,1601,1'
  35.                                 AND
  36.                                 (
  37.                                         select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
  38.                                         and
  39.                                         (
  40.                                                 select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
  41.                         and ptc2.category_id = 1400
  42.  and
  43.                                                 (
  44.                                                         select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2  AND p.price BETWEEN 162900 AND 359900
  45.                                                 )  > 0
  46.                                         ) > 0
  47.                                 ) > 0
  48.                                 AND cd.language_id = '1'
  49.                                 AND c2s.store_id = '0'  
  50.                                 AND c.status = '1'
  51.                                 ORDER BY c.sort_order, LCASE(cd.name) |
  52. | 98611 | ag_user | localhost           | ag_portal | Sleep   |    3 |              | NULL                                                                                                                                                 |
  53. | 98612 | ag_user | localhost           | ag_portal | Sleep   |    2 |              | NULL                                                                                                                                                 |
  54. | 98613 | ag_user | localhost           | ag_portal | Sleep   |    0 |              | NULL                                                                                                                                                 |
  55. +-------+---------+---------------------+-----------+---------+------+--------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. 13 rows in set (0.00 sec)
  57.  
  58. 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