Local Community

Error establishing a database connection Ubuntu

local-lightning.log (674.0 KB) ### Issue Summary

Error establishing a database connection Linux

One or two sentence summary of the issue.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    All except a new one I used MuSQL 5.7.2.8 with. All the rest are have the same error
  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Yes.

Replication

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 can’t because I don’t know how this happened. I haven’t changed anything and was using Local normally.

System Details

  • Which version of Local is being used?
    5.10.5
  • What Operating System (OS) and OS version is being used?
    • For example: macOS Catalina or Windows 10 Professional
      Ubuntu 20.04.2 LTS
  • Attach the Local Log. See this Community Forum post for instructions on how to do so:

Solved
If anyone facing the same issue here my fix. It’s not unique and was published here a few times. However, my version was to backup and zip all my sites in another location in my PC. Delete them completely from Local. Then import them one by one using custom. MySQL is 5.7, server Apache and PHP 7.3. Everything is fine now :smiley: :heart_eyes:
Have no clue how this happened, but I took another backups using a WordPress plugin when all my sites were imported. I’m taking no chances! Thanks to Jimmy and Nick from Local Support! They were great!!

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