Local server help
Posted: Tue Jul 19, 2005 2:41 pm
I set up a local hosting (wamp) on my system so i could use it as a testing server so i can setup alot of my scripts and make them all work and all but for some reason i get this error when i try connecting to MySQL can someone help me?
db.php
line 11
Thank you
Smackie
Code: Select all
Warning: mysql_pconnect() їfunction.mysql-pconnect]: Access denied for user 'dbuser'@'localhost' (using password: YES) in c:\program files\e-novative\WAMP\www\db.php on line 11
Couldn't connect to server.db.php
Code: Select all
<?
/* Database Information - Required!! */
/* -- Configure the Variables Below --*/
$dbhost = 'localhost';
$dbuser = 'username';
$dbpasswd = 'password';
$database = 'databasename';
/* Database Stuff, do not modify below this line */
$connection = mysql_connect("$dbhost","$dbuser","$dbpasswd")
or die ("Couldn't connect to server.");
$db = mysql_select_db("$database", $connection)
or die("Couldn't select database.");
?>Code: Select all
$connection = mysql_connect("e;$dbhost"e;,"e;$dbuser"e;,"e;$dbpasswd"e;)Smackie