The M of WAMPserver is not working...
Posted by: MarkV (---.bhz.virtua.com.br)
Date: April 28, 2006 12:43PM

I installed WAMPserver and I tried to install Total Traffic System, but I got an error message: "could not connect to MySQL, check your settings in ttt-mysqlfunc.inc.php", then I clicked back twice and I clicked ttt-mysqlfunc.inc.php to check my settings, but it is a blank page.

How can I solve this problem?



Post Edited (04-28-06 12:43)

Options: ReplyQuote
Re: The M of WAMPserver is not working...
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: April 29, 2006 04:21AM

You are not connecting to MySQL correctly. The default MySQL root user does not have a password set, so to connect to MySQL set the password to null since no password is set. Make sure you do not put any quotes around null. The special null value represents that a variable has no value. If you put quotes around it, then it is just a string, not any different from any other string.

$host = 'localhost';
$user ='root';
$pass= null;
$dbase = 'Some_Database_Here';

$dblink = mysql_connect ($host, $user, $pass);

$connect = mysql_connect_db ($dbase, $dblink);

Options: ReplyQuote


Sorry, only registered users may post in this forum.