Local Community

Getting "Error establishing a database connection" after PC shutdown unexpectedly

Hi. My PC unexpectedly shut down while I was working on a site with Local & Elementor. Now, when I try to launch the site again with Local, I get the “Error establishing a database connection” on my browser. When I stop the site from running on Local, I get a popup that reads “uh-oh! MySQL was unavailable when Local tried to back up {site name} database. Please check the local-by-flywheel.log file for more details.”

These are the last lines on my log:

Jun 23, 2019, 4:13 PM PDT - info: [main/stopSite] Stopping site: running mydumper
Jun 23, 2019, 4:13 PM PDT - warn: [main/waitForMySQL] waitForMySQL Response:
{ stdout: ‘’, stderr: ‘’ }
Jun 23, 2019, 4:13 PM PDT - error: [main/exportDB]
{ message: ‘’,
‘Error\n at Object. (C:\Users\Joe\AppData\Local\Programs\local-by-flywheel\resources\app.asar\main\actions-sites\wait-for-mysql.js:1:2851)\n at Generator.next ()\n at _0x27ef51 (C:\Users\Joe\AppData\Local\Programs\local-by-flywheel\resources\app.asar\main\actions-sites\wait-for-mysql.js:1:1405)\n at process._tickCallback (internal/process/next_tick.js:68:7)’ }
Jun 23, 2019, 4:13 PM PDT - info: [main/stopSite] Stopping site: stopping container 5ad7d63a9c75bcaa029f78a83027a1b9a0cb6f59c1993d74a4cd9d0ea860522b

I’ve received this same error yesterday and am following for the solution.

I have the same problem. How did you fix it?