Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable query profling in phpMyAdmin

I am using xampp (apache + mysql) on local Windows 10. While performing a query in phpmyadmin. I accidentally clicked the box for profiling and now all queries run with profiling. How do I turn this setting off?

I have tried restarting the server and MySQL database, but the setting persists.

I did not find a setting for it in the my.ini. Also checked the database settings in phpMyAdmin and did not find a setting for profiling.

like image 425
Zack Avatar asked Aug 28 '16 01:08

Zack


People also ask

How to disable query cache MySQL?

So the only way to stop any activity around query cache requires restarting MySQL with query_cache_type = 0 and query_cache_size=0. Disabling it or even set it to “0” on runtime is not completely stopping mutex activity. But why do we still need query_cache_size while in theory query_cache_type should be enough?

What is profiling in MySQL?

mysql> SET profiling = 1; SHOW PROFILES displays a list of the most recent statements sent to the server. The size of the list is controlled by the profiling_history_size session variable, which has a default value of 15. The maximum value is 100.


1 Answers

It seems the problem was the profiling option only shows up after you perform a query.

enter image description here

Except, it won't show up if your query uses aggregates or joins.

enter image description here

I used a simple query and was finally able to disable profiling again.

like image 177
Zack Avatar answered Oct 09 '22 00:10

Zack