MySQL Forums
Forum List  »  PHP

Re: Connection To GoDaddy MySQL Fails with 500 Error
Posted by: David Sampson
Date: April 23, 2018 08:49PM

Thanks Barry... I know that it is on the MySQL Connect line because when I comment out that line, everything works correctly, but I will check the log to see if it reveals more detail on the error.

I just realized that the server GoDaddy is using is actually:

Server type: Percona Server
Server version: 5.5.43-37.2-log - Percona Server (GPL), Release rel30.2, Revision 38.2

I don't know if that makes a difference.

The actual code I am using is:


try {
$conn = mysqli_connect($host, $dbuser, $dbpass, $dbname);
} catch ($e) {
echo 'Caught exception: ' . $e->getMessage();
}

Options: ReplyQuote


Subject
Written By
Posted
Re: Connection To GoDaddy MySQL Fails with 500 Error
April 23, 2018 08:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.