I'm getting this MySQL error when I try to connect to mysql.hyponiqs.com (yes, I have that sub-domain setup as my MySQL host):
"Warning: mysql_connect(): Access denied for user: 'MYUSERNAME@cordial.dreamhost.com' (Using password: NO) in /home/.fandango/hyponiq/hyponiqs.com/includes/connnect.php on line 7
Access denied for user: 'MYUSERNAME@cordial.dreamhost.com' (Using password: NO)"
Note: MYUSERNAME is actually substituted for my actual user name, but I put that for safety practices.
When I try connecting to MySQL, it 1) Doesn't use a password to connect to MySQL and 2) Acts as though the user doesn't exist.
I've been working with PHP a long time and I've never had this problem before. What'd I do wrong?
Here's what the PHP looks like:
$dbuser = "MYUSERNAME";
$dbpass = "MYPASSWORD";
$dbhost = "mysql.hyponiqs.com";
$link = mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
Is the above right? (That's the same basic PHP I've used for a year now...never once any problems.)