mysql connect problems
Posted 30 July 2006 - 02:44 AM
When I enter this in DW8, I get the something's wrong error:
$connect = mysql_connect ("localhost", "host", "fakepw") or die ("something's wrong");
I can also enter this and get the error:
mysql_ping (link_id) or die ("something's wrong");
I believe everything is set correctly according to phpinfo. What am I missing?
My setup is using Apache2triad that uses
Posted 30 July 2006 - 10:37 AM
$connect = mysql_connect ("localhost", "host", "fakepw") or die ("Unable to connect to the database: " . mysql_error());It should now return an erroir message from mysql this time, which should tell you why it is failing.
Posted 30 July 2006 - 12:03 PM
Thanks, I think I figured this out. The message above shows the user to be host when it should be root. I changed to root and got no error message, so assume it is now working.
Posted 30 July 2006 - 05:30 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users