[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] OT: MySQL



Hi all,

I have just started playing with MySQL on a RAQ4.

It all works fine when I telnet onto the box and go in from the command
line.

If I go in from the browser and try and connect then I get this:

Warning: MySQL Connection Failed: Access denied for user:
'myuser@xxxxxxxxxxxxxxx' (Using password: YES) in
/home/sites/site2/web/test.php on line 27
Unable to connect to database

This is what I have in my HTML file:

$hostname = "http://www.mydomain.net";;
$username = "myuser";
$password = "mypassword";
$dbName = "mydatabase";

Line 27 is this:

MYSQL_CONNECT($hostname,$username,$password) OR DIE("Unable to connect to
database");

I suspect that it might be a path problem. Also, why does it say
@*ns*.mydomain.net in the error message?  If anyone can throw any light on
it I'd be grateful.

Best regards,

Andy