profiling - MySQL Profiler - No entries in show profile -
i using mysql profiler diagnosis of mysql issues investigating. when issue show profiles
command not results.
this how using it:
set profiling=1 --enable profiling -- run selects / inserts etc select count(*) mytable insert mytable (mydata) values ('wibble') show profiles
i expecting show profiles
command give me profile data selects etc performed after enabling profiling (per information from mysql dev page), empty resultset. not see errors when enabling/disabling profiling nor see errors when attempting view profiles.
the following may or may not relevant:
- the commands issued via phpmyadmin
- i running mysql 5.0.77
select * information_schema.profiling
returns no results
tested, works.
you can phpmyadmin if can use transaction (depending on storage engines?)
try this:
start transaction; set profiling=1; --enable profiling -- run selects / inserts etc select count(*) mytable; insert mytable (mydata) values ('wibble'); show profiles; commit; --or rollback
please note i've added semicolon after each query!
Comments
Post a Comment