Custom Database Connection on Magento 2

Sometimes Magento needs to connect with a different Database specially when we link Magento to a third party system (like ERP). Magento 2 is very much flexible and easily connect to other systems. To establish connection with a different database we need to apply following tweak.

All the credential for new connection can be set from the following file

app/etc/env.php

Continue reading Custom Database Connection on Magento 2