Can't connect to database

My username is epiz_32347727 and my website is https://testfyp.epizy.com/user/loginpage.php

Although the credentials of my database connection is correct, it always show Connection Failed when I try to login to my website.

image

Yesterday I tried to login and it can be accessed but start from this morning it cannot access. I did not edit any code in my file manager

We can’t help you if all you show is a very uninformative error message. Can you get the actual message to show?

You can also share your code here, just be sure to surround it with this: ~~~

4 Likes

I am sorry, here is my database connection code:


In the if statement, type:

echo mysqli_connect_error();

And then share the output of that.

3 Likes

I got this output

image

And also when i try to access this phpMyAdmin in cPanel, it take really long time to load

image

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.