Cannot connect to DB
Posted by: sdotson (---.tampfl.dsl-w.verizon.net)
Date: August 29, 2006 09:11PM

Downloaded WAMPS and all went well. Changed the root password in phpmyadmin as well as in the config.ici.php file

Attempted to connect to it with:

$hostname="localhost";
$username="root";
$password="password";
$dbname="test";
$usertable="te";

MYSQL_CONNECT($hostname,$username, $password) OR DIE ("<html><script language='JavaScript'>alert('Unable to connect to database! Please try again later.')</script></html>"winking smiley;

It refuses to connect. I'm sure it' something simple. Any suggestions what to check first.

Options: ReplyQuote
Re: Cannot connect to DB
Posted by: CyberSpatium (67.170.181.---)
Date: August 30, 2006 02:51AM


Options: ReplyQuote


Sorry, only registered users may post in this forum.