mysql_connect()

Posted by Jacksta on Stack Overflow See other posts from Stack Overflow or by Jacksta
Published on 2010-04-16T03:52:22Z Indexed on 2010/04/16 3:53 UTC
Read the original article Hit count: 242

Filed under:
|
|
|

I am trying to connect to mysql and am getting an error. I put my servers ip address in and used port 3306 whihch post should be used?

<?php

$connection = mysql_connect("serer.ip:port", "user", "pass")
    or die(mysql_error());

    if ($connection) {$msg = "success";}
?>

<html>
<head>
</head>
<body>

<? echo "$msg"; ?>

</body>
</html>

Here is the error its producing

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'@'server1.myserver.com' (using password: YES) in /home/admin/domains/mydomain.com.au/public_html/db_connect.php on line 3
Access denied for user 'admin'@'server1.myserver.com' (using password: YES)

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php