<h1>Database Connection Errors</h1>

<p>Fix common database connection issues:</p>

<h2>Check Database Credentials</h2>
<ol>
    <li>Verify database name, username, and password</li>
    <li>Ensure database server is running</li>
    <li>Check firewall settings</li>
</ol>

<h2>Test Connection</h2>
<pre><code>php artisan tinker
DB::connection()->getPdo();</code></pre>

<h2>Common Solutions</h2>
<ul>
    <li>Restart database service</li>
    <li>Check MySQL/MariaDB logs</li>
    <li>Verify user permissions</li>
</ul>