title: Looking for more info about why I cannot connect with database Codeigniter 4
body: <p>I made a small tool using Codeigniter 4 on my local machine in windows env with XAMPP.</p>
  <p>I created a MySQL database in a server, pulled the code, and applied the appropriate configs but when I try to use parts of the tool that involve databases I get:</p>
  <pre><code>CodeIgniter\Database\Exceptions\DatabaseException #8
  Unable to connect to the database.
  </code></pre>
  <p>The exception seems to be trow by BaseConnection.php at line 395</p>
  <pre><code>392             // We still don't have a connection?
  393             if (! $this-&gt;connID)
  394             {
  395                 throw new DatabaseException('Unable to connect to the database.');
  396             }
  </code></pre>
  <p>I added a .env setting the environment to development so I can see the error messages.</p>
  <p>My server is a shared server running PHP 8.0 with the following <a href="https://i.stack.imgur.com/xpvJD.png" rel="nofollow noreferrer">enabled modules</a></p>
  <p>I also run a small script in the server but outside to Codeigniter to test password, username, port, and address and it is working fine.</p>
  <p>Any help and tips to better understand what is happening or how to found out will be very appreciated.</p>