Hi,
I am trying to connect from a webpage to a mysql dbase.
The technician told me to use
mysql -u [password] -h [hostname] [dbasename]
So, my php in my webpage body is
<?php
$link = mysql_connect ("hostname.uni.uk", "[dbasename]", "[password]")
or die ("Could not connect");
print ("Connected successfully");
mysql_close ($link);
?>
however, i get the following error....
Warning: MySQL Connection Failed: Access denied for user. Could not connect.
Any ideas?(I have successfully got the test info PHP working so Apache is setup ok).
Thanks.
I am trying to connect from a webpage to a mysql dbase.
The technician told me to use
mysql -u [password] -h [hostname] [dbasename]
So, my php in my webpage body is
<?php
$link = mysql_connect ("hostname.uni.uk", "[dbasename]", "[password]")
or die ("Could not connect");
print ("Connected successfully");
mysql_close ($link);
?>
however, i get the following error....
Warning: MySQL Connection Failed: Access denied for user. Could not connect.
Any ideas?(I have successfully got the test info PHP working so Apache is setup ok).
Thanks.