From the root of your Magento installation enter the app/etc/
folder and edit env.php
file which contains all the information related to your database configuration in the 'db'
node.
![Magento app/etc folder Magento app/etc folder](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/02/image.png?resize=736%2C383&ssl=1)
From here, you can edit various values related to your database configuration such as:
host
: your host address (usually localhost)dbname
: the name of the Magento website databaseusername
&password
: account information that has access todbname
![env.php file Magento env.php file Magento](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/02/image-1.png?resize=736%2C679&ssl=1)
After you’re done configuring, remember to save the file and clear your cache from Magento System > Tools > Cache Management > Flush Magento Cache.