I am running out of ideas here and hoping someone can help me out.
I am using WHM, and used the EasyApache to enable zip. Upon completion all my mysql_connect statements stopped working.
So running a basic piece of code like:
<?php
$link = mysql_connect('localhost', 'usrhere', 'passhere');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
Returns: "Could not connect: Access denied for user 'cpaneluser'@'localhost' (using password: NO)". So you'll notice the username and password here are being ignored. Am I missing an extension or library or something?
The strange thing is I am also running Zend Framework2, and this has no problem connecting to the DB with the default code.
If this happens to anyone else, for some reason when doing EasyApache it put me in sql safe mode. Changing that to off in my php.ini resolved everything.