I just reinstalled Windows 7 and I am trying to get my development environment up and running again. XAMPP installed ok, and my application is in htdocs and all databases have imported fine. I can view them in phpMyAdmin and everything looks intact.
When trying to run the application, queries are so slow that most pages timeout before all the queries can complete.
For example, pages this computer could generate in 3 seconds before, now go up to 30 seconds and the page times out.
This is an XAMPP installation 1.7.7, but I have tried rolling back to their older versions and got the same result.
There is nothing in the log files, as it’s not actually erroring out, it’s just performing the queries very slowly.
Even navigating the databases via phpMyAdmin takes about 3-10 seconds to load pages whereas it has previously been instant. So this eliminates my application (which also hasn’t changed since when it was working very quickly before).
Any ideas what could be causing this big slowdown in a fresh xampp install? Was there something in httpd.conf, php.ini or my.ini I might have setup prevously that got wiped by the fresh install and might now cause the database access to be slow?
Thanks!
The problem appeared to be in the query cache and InnoDB setup for MySQL. Although XAMPP has lines for InnoDB in the my.ini, there were additional that needed to be added.
Below is the config I have saved from my previous build. When I added these to my.ini and restarted the server everything seemed to work at full speed again.
I am not sure whether this fixed an underlying slowdown issue, or if the use of a query cache is now just masking it, but it’s working well enough! On with development!
UPDATE
Sample config file that worked using this technique (MySQL 5.7 tested on Windows)