Database Connection Failed

Unable to connect to MySQL database on Hostinger

Error Details:

Error Code: 1044

Error Message: Access denied for user 'u281847428_webs'@'localhost' to database 'u281847428_multi_portal'

Host: localhost

Username: u281847428_webs

Database: u281847428_multi_portal

Hostinger Setup Guide

Your Database Credentials:

Database Host localhost
Username u281847428_webs
Database Name u281847428_multi_portal
Password H1~^#RhUSs
1

Login to Hostinger

Go to Hostinger hPanel → Databases → MySQL Databases

2

Create Database

Create database: u281847428_multi_portal

Username: u281847428_webs

Password: H1~^#RhUSs

3

Import SQL File

Go to phpMyAdmin → Select database → Import

Upload the project.sql file

4

Update Config File

Make sure config/database.php has correct credentials

// Current Database Configuration:
define('DB_HOST', 'localhost');
define('DB_USER', 'u281847428_webs');
define('DB_PASS', 'H1~^#RhUSs');
define('DB_NAME', 'u281847428_multi_portal');

// Test connection in phpMyAdmin:
// Username: u281847428_webs
// Password: H1~^#RhUSs
// Database: u281847428_multi_portal
Retry Connection Open Hostinger Databases Auto Setup