Local Community

Unable to connect to database

Issue Summary

When I try to view the database that my site uses I get an error from my browser saying that it cannot connect.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    only this site

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?


Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!
I open Local By Flywheel, select my site from the ‘Local Sites’ menu, start the site, click on the ‘Database’ tab, click on ‘Open Adminer’.

System Details

  • Which version of Local is being used?

  • What Operating System (OS) and OS version is being used?
    Linux Ubuntu 21.10

1 Like

Having same issue on elementaryOS (distro based off Ubuntu). Issue started this morning. Successfully ran Local until this morning. Now
Screenshot from 2022-04-04 13.09.14

System details

  • Local v6.3.1+5826
  • elementary OS 6.1 Jólnir (Built on Ubuntu 20.04.3 LTS)

Update after restarting my computer a couple of times and switching to and from Site Domain and localhost I was able to access my sites again. Perhaps a Linux update interfered with the port?

Interesting. I actually just skirted the issue by creating a new install of WordPress and migrating everything I was testing from the old site to the new one since the database works without issue on the new site. The urgency to find a solution is gone, but I still want to fix the old site.

I do see that every time I open Local, I get an alert telling me that their is a new version of Local. Although I downloaded it, I am not sure how to apply the update since I am on Ubuntu… Any ideas?

On elementaryOS I use a package manager called Eddy for LocalWP updates. You can use that or similar on Ubuntu`

hmm that sounds like a good idea. I think I used apt-get, thank you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.