Get Magento’s database configuration
On Linux, make a php file anywhere in your filesystem while including the magento Mage file. <?php require_once "/home/cliper/magento/app/Mage.php"; Mage::app(); $config = Mage::getConfig()->getResourceConnectionConfig("default_setup"); $dbinfo = array(“host” => $config->host, “user” =>…