🔍 Faiz Bright School - Database Check

Step 1: MySQL Server Connection

❌ MySQL Connection Failed!

Error: SQLSTATE[28000] [1045] Access denied for user 'albadbth_faiz'@'localhost' (using password: YES)

Solutions:

  1. Check if MySQL username/password is correct in cPanel
  2. Go to cPanel → MySQL Databases → Check user 'albadbth_faiz' exists
  3. Make sure user is added to database with ALL PRIVILEGES

Step 4: Correct Configuration for Config/database.php

Update your Config/database.php with these settings:

<?php
class Database {
    private $host = "localhost";
    private $db_name = "albadbth_faiz_bright_school";  // <-- USE THIS EXACT NAME
    private $username = "albadbth_faiz";               // cPanel MySQL username
    private $password = "YOUR_PASSWORD_HERE";           // Your MySQL password
    
    // ... rest of code
}
?>