I was building a new site on local. tried working on it today and received the “error establishing database” message. The only thing I know is that the power went out for a few seconds, but that has happened a few times this week and never had any issues. I am new at all of this and trying to figure it out, but getting a bit overwhelmed.
Web server :Nginx
php version 7.3.5
database: MYSQL 8.0.16
Hey @caveman75, Welcome to the Local Community Forums!
It’s hard to say why the site went away, but a power outage could definitely cause a corruption within the database.
Can you try restoring the site to a new one in Local? You can use a backup of the site, or try using the files for the site by following the steps outlined in the “Restoring From Only Local Site files” section of this help doc: