PC shutdown unexpectedly and now show up “Error establishing a database connection”

Hi there!

I have a problem like this Getting "Error establishing a database connection" after PC shutdown unexpectedly, my computer was accidentally turned off when using local by Flywheel and now when I try to see my website show up a message “Error establishing a database connection” and the other hand "… check the local-by-flywheel.log file for more details.”

I saw that Clay reply this: [RESOLVED] "Error establishing a database connection"

"If anyone else runs into this issue please try the following:

Right-click on the site in Local’s sidebar
Enter and run the following command: rm -rf /var/run/mysqld/mysqld.*
Right-click on the site in Local’s sidebar and click Restart"

I Did it but it doesn’t works for me.

I work in Windows with local by Flywheel versión 3.3.0

What can I do?

Thanks

There are simpler and at home it worked:

 - Right click on the site name and click on “Reveal in Finder” in Local by Flywheel. Compress the folder containing all your site in a * .ZIP file (normally there must be at least the “app” and “logs” folder, sometimes “conf”).
 - In Local by Flywheel, import the site manually in FILE / IMPORT SITE, choose the Zip of your site
  - Normally, it reinstalls the site and recreates the Database… for me it’s work (on Windows and on Mac)

Yes, I did it this way but the styles (icons, fonts, colors, etc.) were not saved.

And I don’t know how to recreates the Database in Local By Flywheel. :pensive:

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