i am connecting my php page with data bsae but connection not eshtablish and a warning is occure . my ussername and password and hostname are correct i checked many times . i cant understand why this prob is occure. please is .. the warning is given below..
" Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dewasdia'@'uni.universalworkplace.com' (using password: YES) in /home/dewasdia/public_html/main.php on line 7 fail "
the php code is
function connection()
{
mysql_connect('www.xxxx.com','xyz','xyz') or die (" fail");
mysql_select_db('dewasdia_dewas') or die(mysql_error());
}
You probably don’t have an entry in the
mysql.usertable allowing a connection from your script’s host (uni.universalworkplace.com).You need to grant access using something like