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' ...
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.
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
This topic is archived. New comments cannot be posted and votes cannot be cast.