Mysql connection not working

Hi, I have a problem with mysql connection with php and iis. my coding is a simple one : <? $user = user; $pass = pass; $server = localhost; mysql_connect($server, $user, $pass) or die (mysql_error ()); ?> but when i run the file i will get this message: mysql_connect:(Access Denied for user: 'user@localhost' ...

Windows Software 5498 This topic was started by ,


data/avatar/default/avatar17.webp

1 Posts
Location -
Joined 2005-02-03
Hi,
 
I have a problem with mysql connection with php and iis. my coding is a simple one :
 
<?
$user = "user";
$pass = "pass";
$server = "localhost";
 
mysql_connect($server, $user, $pass) or die (mysql_error ());
?>
 
but when i run the file i will get this message: mysql_connect:(Access Denied for user: 'user@localhost'(Using password:YES) in line 6.Access Denied for user:'user@localhost' (Using password:YES)
 
how do i solve this problem? thanks in advance.
 
 

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.