Unable to connect to database

Website URL motueka-bnb.infinityfreeapp.com

Error Message

Fatal error : Uncaught mysqli_sql_exception: Access denied for user ‘if0_36604612’@‘192.168.0.51’ (using password: YES) in /home/vol13_3/infinityfree.com/if0_36604612/htdocs/test_connection.php:12 Stack trace: #0 /home/vol13_3/infinityfree.com/if0_36604612/htdocs/test_connection.php(12): mysqli->__construct(‘sql108.infinity…’, ‘if0_36604612’, Object(SensitiveParameterValue), ‘if0_36604612_mo…’) #1 {main} thrown in /home/vol13_3/infinityfree.com/if0_36604612/htdocs/test_connection.php on line 12

all my credentials are correct I have double / triple checked but continue to get this error

(other information and details relevant to your question)

Nope, the database name or password is wrong.

the database name is if0_36604612_<DATABASENAME>

the password can be found in your client area (It is not the password you use to login to the dashboard)

see more:

I am aware of that and am using the correct password and database name , hence the reason I’m posting here

Account Details

USERNAME

if0_36604612

PASSWORD

************* Show/Hide

STATUS

Active

LABEL

Website for motueka-bnb.infinityfreeapp.com

WEBSITE IP

185.27.134.94

HOSTING VOLUME

vol13_3

HOME DIRECTORY

/home/vol13_3/infinityfree.com/if0_36604612

CREATION DATE

2024-05-24

I can login to myphpadmin so password is correct and so is the database name

So whats the next step because its all correct?

<?php

ini_set('display_errors', 1);

ini_set('display_startup_errors', 1);

error_reporting(E_ALL);

// Database connection test script

$host = "sql108.infinityfree.com";

$user = "if0_36604612"; 

$pass = "MGDK1K9q0xxxx"; 

$db = "if0_36604612_motueka_bnb";

$conn = new mysqli($host, $user, $pass, $db);

if ($conn->connect_error) {

die("Connection failed: " . $conn->connect_error);

}

echo "Connected successfully";

?>

Hello? so we get a generic answer and that’s it? no more reply’s no help ?
all the credentials are correct so i need more help please

Please remember that everyone here is volunteering their time to help you out. Have patience, someone will assist you when they can.

I am out of things that I can check without access to your account, which is something that I don’t have. If I missed something and someone else catches it, they’ll reply. Otherwise, Admin will most likely help you whenever he comes online.

Thank you, and sorry don’t mean to come across rude, my bad. I believe I have it sorted now

So, just to confirm, you were able to resolve the issue? You don’t need any further help with this?