Unable to link mySQL

Username (e.g. epiz_XXX) or Website URL

epiz_26024830

(please specify the website or account you are asking about)

Error Message

This page isn’t working

DOMAIN NAME is currently unable to handle this request.

HTTP ERROR 500
(please share the FULL error message you see)

My php script was working fine on localhost, I changed the required hostname(sql306.epizy.com), username, password etc as per the account panel.
The website’s index page is opening fine. All the contents are stored in a folder named as domainname(/home/vol14_6/epizy.com/epiz_26024830/DOMAIN_NAME).

Please help

(other information and details relevant to your question)

3 Likes

I have used this:

$link = mysqli_connect ($host, $dbusername, $dbpassword, $dbname);
 
// Check connection
if($link === false){
    die("ERROR: Could not connect. " . mysqli_connect_error());
}

Then also I’m not getting any status code

Did you already make a mysql database?

Yes, Is there any problem in website folder location?

An HTTP ERROR 500 means your code is crashing. It could be the consequence of database connection issue, but it might something else as well.

Can you please follow the guide shared by @katufo to figure out what the error is?

2 Likes

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