pastebin - collaborative debugging tool
hn.kpaste.net RSS


Untitled
Posted by NotLim on Wed 8th Jan 2014 16:19
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   | 5344 |                              | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  6. | 92191 | ag_user              | 186.67.142.99:56968 | ag_portal | Sleep   | 2785 |                              | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  7. | 93867 | ag_user              | 186.67.142.99:58115 | ag_portal | Sleep   | 3841 |                              | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  8. | 94260 | ag_user              | 186.67.142.99:58647 | ag_portal | Sleep   | 3516 |                              | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  9. | 94628 | ag_user              | 186.67.142.99:58872 | ag_portal | Sleep   | 3257 |                              | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  10. | 95195 | ag_user              | 186.67.142.99:59223 | ag_portal | Sleep   | 2785 |                              | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  11. | 98532 | ag_user              | localhost           | ag_portal | Sleep   |   28 |                              | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  12. | 98561 | ag_user              | localhost           | ag_portal | Query   |    1 | Waiting for table level lock | UPDATE ag_product SET viewed = (viewed + 1) WHERE product_id = '4734'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  13. | 98563 | ag_user              | localhost           | ag_portal | Query   |    2 | 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.  
  17.                                 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,1602) AND c.origin_SAP = 'FILTRO'
  18.                                 AND
  19.                                 (
  20.                                         select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
  21.                                         and
  22.                                         (
  23.                                                 select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
  24.                                                 and ptc2.product_id = 3635
  25.                                                 and
  26.                                                 (
  27.                                                         select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2  
  28.  
  29.                                                 )  > 0
  30.                                         ) > 0
  31.                                 ) > 0
  32.                                 AND cd.language_id = '1'
  33.                                 AND c2s.store_id = '0'  
  34.                                 AND c.status = '1'
  35.                                 ORDER BY c.sort_order, LCASE(cd.name) |
  36. | 98564 | ag_user              | localhost           | ag_portal | Sleep   |    2 |                              | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  37. | 98565 | root                 | localhost           | NULL      | Query   |    0 | NULL                         | show full processlist                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  38. | 98566 | ag_user              | localhost           | ag_portal | Query   |    1 | Waiting for table level lock | SELECT p.product_id, p.price, (SELECT AVG(rating) AS total FROM ag_review r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating, p.division FROM ag_product p LEFT JOIN ag_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN ag_product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN ag_product_to_category p2c ON (p.product_id = p2c.product_id) WHERE pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND ( p2c.category_id = '1183' )  AND p.price > 0  GROUP BY p.product_id ORDER BY p.price ASC, LCASE(pd.name) ASC LIMIT 0,100                                                                                                                                                                                                                                                                                                                                                                 |
  39. | 98567 | ag_user              | localhost           | ag_portal | Query   |    1 | Sending data                 | SELECT * FROM ag_category c
  40.                                                 LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
  41.                                                 LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
  42.  
  43.                                 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,1602) AND c.origin_SAP = 'FILTRO'
  44.                                 AND
  45.                                 (
  46.                                         select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
  47.                                         and
  48.                                         (
  49.                                                 select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
  50.                                                 and ptc2.product_id = 2113
  51.                                                 and
  52.                                                 (
  53.                                                         select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2  
  54.  
  55.                                                 )  > 0
  56.                                         ) > 0
  57.                                 ) > 0
  58.                                 AND cd.language_id = '1'
  59.                                 AND c2s.store_id = '0'  
  60.                                 AND c.status = '1'
  61.                                 ORDER BY c.sort_order, LCASE(cd.name) |
  62. | 98568 | ag_user              | localhost           | ag_portal | Query   |    1 | Waiting for table level lock | SELECT min(p.price) as min_price FROM ag_product p
  63.  WHERE p.manufacturer_id = 45
  64.  AND p.price <> 0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  65. | 98569 | unauthenticated user | localhost           | NULL      | Connect | NULL | Reading from net             | NULL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  66. +-------+----------------------+---------------------+-----------+---------+------+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. 15 rows in set (0.00 sec)

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