I'm having an issue with a WordPress site that I'm running locally on my machine accessing my local database that I've created. The database I pulled down is from a live, working database, but I would like to work locally for both the db and WP site.
When I browse to the site, I'm not getting an "Error establishing connection" message, so my wp-config is setup correctly with the hostname, username, and pw. I can see the browser trying to load the page, but after a while (1-2 mins), the browser stops, but no error message is returned.
I then purposely put in wrong credentials in my wp-config, where I then the typical "Error establishing..." message.
I'm not sure how to solve this issue because I'm not even sure what the problem is. Could anyone please provide some insight into what I should look into?
Edit
PHP error logs contain the following
[UTC] PHP Warning: mysql_connect(): MySQL server has gone away in C:\xampp\htdocs\.........\web\content\wp-includes\wp-db.php on line 1147
[UTC] PHP Warning: mysql_connect(): Error while reading greeting packet. PID=3632 in C:\xampp\htdocs\...\web\content\wp-includes\wp-db.php on line 1147
[UTC] PHP Warning: mysql_connect(): MySQL server has gone away in C:\xampp\htdocs\..\web\content\wp-includes\wp-db.php on line 1147
[UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\..\web\content\wp-includes\wp-db.php on line 1147