Mysql connection not working

This is a discussion about Mysql connection not working in the Windows Software category; 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 in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.