Hello all,
I installed Wamp version 3.1.0 a few weeks back and noticed that on a project I was working on, that connecting to both MySQL and MariaDB is very slow (takes 3000ms) every 30 seconds or so. In between those 30 seconds, my pages load super fast (less than 0.03 seconds), but once that 30 seconds has passed, the next page load takes ~3.03 seconds). Using xDebug and WebGrind, I narrowed it down to the PDO database connector:
Image: [prntscr.com]
I do not use localhost as a connector in my project. I connect using IP
"mysql:host=127.0.0.1;port=3306;dbname=stats;charset=UTF8"
This happens with both the stock WAMP settings for MySQL and MariaDB, and after any and all changes I have made to those config files. I should note that I am using Windows 10, 64 Bit with Wamp 3.13 x64 as well. PHP version 7.19 and 7.2.3.
phpMyAdmin also suffers from this too!
Does anyone have a clue why this is happening, and what can I do to fix this?
I installed Wamp version 3.1.0 a few weeks back and noticed that on a project I was working on, that connecting to both MySQL and MariaDB is very slow (takes 3000ms) every 30 seconds or so. In between those 30 seconds, my pages load super fast (less than 0.03 seconds), but once that 30 seconds has passed, the next page load takes ~3.03 seconds). Using xDebug and WebGrind, I narrowed it down to the PDO database connector:
Image: [prntscr.com]
I do not use localhost as a connector in my project. I connect using IP
"mysql:host=127.0.0.1;port=3306;dbname=stats;charset=UTF8"
This happens with both the stock WAMP settings for MySQL and MariaDB, and after any and all changes I have made to those config files. I should note that I am using Windows 10, 64 Bit with Wamp 3.13 x64 as well. PHP version 7.19 and 7.2.3.
phpMyAdmin also suffers from this too!
Does anyone have a clue why this is happening, and what can I do to fix this?