Unable to add site - config.php errors reported

I have tried to add a number of sites to LocalWP but keep getting a message, for different sites, saying a connection could not be made to the database.



System Details

  • Local Version: 10.2.0

  • Operating System (OS) and OS version: Windows


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

@AndyDOHD The most common cause for database connection issues we find on Windows is security or antivirus software stopping Local’s processes from running.

Please could you check the guidelines here?

If you’ve checked those steps carefully and still have issues, please share your logs here. (Help → Download Local logs).