Showing results for 
Show  only  | Search instead for 
Did you mean: 

cannot connect to mysql database

I just opened a hosting account with godaddy about twenty four hours ago. i thought everything was working fine until i tried to connect to a database i created using every valid php means i know but it does not connect. worse it does not even show any error when i use a code like:

 $conn = new mysqli($dbhost, $dbuser, $dbpass,$db) or die("Connect failed: %s\n". $conn -> error);

please help i don't know what is wrong!


Re: cannot connect to mysql database

Hi @thefrozeniceman,

Without the domain name and an error it's hard to determine the issue via our forums. I suggest reaching out to our support team for help. 

KayJay - GoDaddy | Community Moderator
24/7 support available at