Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Database Connection Issues (2 replies)

$
0
0
Recently (I think since Wamp 3.0) my PHP is having trouble connecting to the database about 20% of the time.

It seems to be a resource limit problem - e.g. if I open 10 tabs then all of them will fail to connect, but if I only open one and refresh it a few times it'll usually work then occasionally not work.

I have 10 WordPress sites installed locally and it seems to happen equally with all of them.

MySQL: 5.7.14 (I tried another version before reinstalling but I'm not sure which one)
PHP: 5.6.25 and 7.0.10
Apache: 2.4.23
Wamp: 3.0.6 64bit

I just tried reinstalling from scratch and get the same problems - all files and configs are stock except changing the location of my vhosts file.

There's nothing in any error logs that I can find (Windows Event Viewer or ones linked via WampManager), I've tried increasing MySQL's connection_limit to 500 (from 150) and checked whether Windows has any TCP connection limits (it doesn't appear to).

I'm at a loss for what else to check or try. The same code works perfectly in production (all be it on slightly different versions).

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>