mysql - show profiles doesn't show me a query -


hallo guys. can explain me why show profiles doesn't show me query? output of attempt:

mysql> set profiling = 1; query ok, 0 rows affected (0.00 sec)  mysql> use slow; database changed mysql> show profiles; +----------+------------+-------------------+ | query_id | duration   | query             | +----------+------------+-------------------+ |        1 | 0.00024275 | select database() | +----------+------------+-------------------+ 1 row in set (0.00 sec)  mysql> select count(*) people; +----------+ | count(*) | +----------+ |   500000 | +----------+ 1 row in set (0.00 sec)  mysql> show profiles; +----------+------------+-----------------------------+ | query_id | duration   | query                       | +----------+------------+-----------------------------+ |        1 | 0.00024275 | select database()           | |        2 | 0.00030825 | select count(*) people | +----------+------------+-----------------------------+ 2 rows in set (0.00 sec)  mysql> select     -> concat_ws('-',min(age(dob)),max(age(dob))) year,     -> count(*) total     -> people     -> group if(age(dob)=0,1,ceil(age(dob)/5))     -> ; +---------+-------+ | years   | total | +---------+-------+ | 0-5     | 29789 | | 6-10    | 24847 | | 11-15   | 24670 | | 16-20   | 24764 | | 21-25   | 24751 | | 26-30   | 24753 | | 31-35   | 24817 | | 36-40   | 24505 | | 41-45   | 24540 | | 46-50   | 24745 | | 51-55   | 24575 | | 56-60   | 24441 | | 61-65   | 24953 | | 66-70   | 24760 | | 71-75   | 24586 | | 76-80   | 24647 | | 81-85   | 24819 | | 86-90   | 24879 | | 91-95   | 24683 | | 96-100  | 24829 | | 101-101 |   647 | +---------+-------+ 21 rows in set (31.42 sec)  mysql> show profiles; +----------+------------+-----------------------------+ | query_id | duration   | query                       | +----------+------------+-----------------------------+ |        1 | 0.00024275 | select database()           | |        2 | 0.00030825 | select count(*) people | +----------+------------+-----------------------------+ 2 rows in set (0.00 sec) 

thanks in advance.

i couldn't find reference either , think bug:

http://bugs.mysql.com/bug.php?id=61328


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -