If you want to change database information then we have to jump on env.php file. Its available on below location and its a database configuration file.

Magento-Root-Directory\app\etc\

Open below selected file by using your favorite editor.

database update magento2

Now we can change database name,host name,root password

databse-infor-edit

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*