Codeigniter error when trying to connect to database using mysqli
<p>I am getting Following error in my CodeIgniter application which is live on server. </p>

<p>Here is the output of the error:</p>

<blockquote>
  <p>A PHP Error was encountered</p>
  
  <p>Severity: Warning</p>
  
  <p>Message: mysqli::real_connect(): (HY000/1044): Access denied for user
  'xxx'@'localhost' to database 'xxx'</p>
  
  <p>Filename: mysqli/mysqli_driver.php</p>
  
  <p>Line Number: 161</p>
  
  <p>Backtrace:</p>
  
  <p>File: /home/arya123/public_html/application/controllers/Home.php Line:
  7 Function: __construct</p>
  
  <p>File: /home/arya123/public_html/index.php Line: 292 Function:
  require_once</p>
</blockquote>