How to Disable Statistic Data Collection in phpMyDirectory?

phpMyDirectory statistic data take a huge chunk of database space in MySQL. If you do not require the data, it is wise to disable the data collection as well.

To disable you have to edit the following file.

/includes/class_statistics.php

Find the following code

 if(BOT) {
 return false;
 }
 

and change it to

 if(true) {
 return false;
 }
 


3 comments… add one
  • I am running Wamp 2.2 on windows (Mysqsl 5.6.17, Apache 2.4.9, and PHP 5.5.2). There is no directory called /includes and there is no file called class_statistics.php anywhere on my machine. Any suggestions?

    Reply
    • You have to look into phpMyDirectory installation in your WAMP, not directly in your machine.

      Reply
  • dennis Link
    April 11, 2015, 7:28 am
    I am running Wamp 2.2 on windows (Mysqsl 5.6.17, Apache 2.4.9, and PHP 5.5.2). There is no directory called /includes and there is no file called class_statistics.php anywhere on my machine. Any suggestions?

    —————————
    You can go to the config.simple.inc (config file of phpmyadmin) and insert a line…

    $cfg[‘ShowStats’] = false;

    and open phpmyadmin again. You will see now the line “Enable database statistics” show again.
    After that, you can erase the above line from the config file

    Reply

Leave a Comment