I have changed the environment and all I've got was a database error

Hello, I have changed the environment from preferred (1.3.2) to custom (with a lower version of php) and all I’ve got was a database error (Error establishing a database connection). I have tried repairing it but all the tables were ok. Repair.php did nothing. I changed back to the preferred environment, the database error was still there. I have tried importing the site from a local zip. The database error is still there.

I am using the latest version of Local by Flywheel (3.0.4) on Windows 10.

Bonus round: I have tinkered with the Adminer and it appears that I have lost access to my database altogether. It does not recognize my root password.

What can I do know?

Thank you.