Error estabilishing a database connection while importing site to local

Hello. I’m new to local. I have a backup of a site that used to be live on EasyWP but I won’t be using it for a while, so I’m trying to move it to local to make changes. I’m manually importing the site following this guide Import/Export a WordPress Site - Local bc I get a zip error. I’m facing the error mentioned in the topic:

What issue or error are you experiencing?

I’m adding a screenshot of the error:

I already replaced the wp-content folder with the one downloaded from EasyWP. Idk how to check if the DB change was actually applied, since there’s a SQL folder with a local.sql file. I put my DB inside the app>public folder

System Details

  • Local Version: Version 9.1.0+6719

  • Operating System (OS) and OS version: Windows 10 Pro 22H2


Local Logs

Attach your Local Logs here
local-logs.zip (32.0 KB)

Hey @flynn!

A couple quick things to check here:

A firewall or antivirus software could block MySQL from running correctly. Can you double check that MySQL is allowed through your Windows Firewall?

On Windows, another thing is to make sure that WordPress has the correct file permissions to access the database. Can you make sure that your user account or the user running the web server has sufficient permissions for the WordPress files and MySQL data files?

Keep us posted and we’d be happy to help further!

Hi @Nick-B !

I added mysql to the firewall as shown here, but the issue persists:

Also, this is my admin user and I can access MySQL on the cmd without issue, but when I try to run the same comment in the local shell, I get this:

I’m not sure what this means. Does it mean that port 10061 is not open? Maybe I’m missing some permissions, but I don’t know how to check more details.

Let me know any tips, thanks :slight_smile:

You could try opening your task manager to see if there are multiple mysql processes running, or you could just kill everything in there, then Start your site and see if works then.

For more on investigating Port Conflicts, you can check out our help article below. Something else that could be conflicting would be if you’re running other dev applications simultaneously. Like XAMP, Docker, etc.