title: Joomla error Application Instantiation Error: Could not connect to MySQL
body: <p>I am running my site on Centos6. The database is installed on a separate server, and the site is working fine.</p>
  <p>I plan to shift the Joomla site on fresh installation on Oracle Linux 8, as CentOS6 reached the end of life. I replicated all the configurations and moved the site folder to the new server.</p>
  <p>I can connect the database from the new server. But when I try to open the page, I get the error &quot;Application Instantiation Error: Could not connect to MySQL&quot;.</p>
  <p>The old server is still up and running, and there is no issue in the old server, but with the installation done on the Oracle Linux 8 server, I am getting the above problem.</p>
  <p>I installed a fresh Joomla instance to check whether any dependency was missed, and it worked perfectly with the same database server.</p>
  <p>I diagnosed further that the previous server was running with the following version</p>
  <p><strong>PHP 5.6.40 (cli) (built: Jan 12 2019 09:19:57)
  Copyright (c) 1997-2016 The PHP Group
  Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
  with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies</strong></p>
  <p>The new server is running on the following version:</p>
  <p><strong>PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
  Copyright (c) 1997-2018 The PHP Group
  Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
  with Zend OPcache v7.2.24, Copyright (c) 1999-2018, by Zend Technologies</strong></p>
  <p>What may be the issue and how to debug, so I may move the server to the latest server version?</p>
  <p>Thanks a ton in advance.</p>
  <p>Regards</p>
  <p>Abhinav Aggarwal</p>