Database Connection Failed

Error: SQLSTATE[08004] [1040] Too many connections

Troubleshooting Steps:

  1. Make sure your .env file exists in the root directory
  2. Verify database credentials:
  3. Ensure MySQL/MariaDB is running
  4. Verify the database exists: CREATE DATABASE IF NOT EXISTS itransfe_nurse;
  5. Check user permissions: GRANT ALL ON itransfe_nurse.* TO 'itransfe_nurse'@'localhost';