I have shared hosting, where I have my website and MySQL database. I installed an open source script for statistics (phpMyVisites) and it started to work very slowly lately. It is written using some kind of structure and has many PHP files. I know that to search for slow queries, I can use the slow query log functions in MySQL. But on this shared hosting I cannot use this method because I cannot change my.cnf. I don’t want to change my script statistics to another, and I don’t want to go through all the files of this script to find out where to put the diagnostic code to record requests manually. I would like to do this without changing the PHP code.
So my question is:
How to register slow requests in these codes ?:
- Cannot modify my.cnf to enable slow query log
- Unable to change script stats to other
- I do not know how the script is written and where mysql commands are issued.
- Unable to request a slow query log from my provider
Is there a way to do this in a simple, easy, and fast way?
optimization php mysql query-optimization shared-hosting
Tomasz Smykowski
source share