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

**URL:** <https://community.localwp.com/t/i-have-changed-the-environment-and-all-ive-got-was-a-database-error/10708>\
**Category:** Support\
**Created:** [January 27, 2019, 1:19am UTC](https://community.localwp.com/t/i-have-changed-the-environment-and-all-ive-got-was-a-database-error/10708 "2019-01-27T01:19:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanM](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@DanM](https://community.localwp.com/u/DanM)\
**Post date:** [January 27, 2019, 1:19am UTC](https://community.localwp.com/t/i-have-changed-the-environment-and-all-ive-got-was-a-database-error/10708/1 "2019-01-27T01:19:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:36pm UTC](https://community.localwp.com/t/i-have-changed-the-environment-and-all-ive-got-was-a-database-error/10708/2 "2020-08-25T18:36:18Z")

</div>


