In magento 1, To change the database detail we directly change in the local.xml file.

Now you are thinking what will be do in Magento 2. Don’t worry it is easy same as Magento 1. But File is different to change the Database Detail. We can also change the table prefix form the file.

To change the database open the file env.php in the path app/etc.

Change the code

Now Change the detail and refresh the page.

Enjoy Database is Changed 🙂