I just finished installing the XAMPP following Bill Weinman who teaches MySQL for lynda.com. Everything is going well, was able to install the sample databases he has and so I am ready to set up the SID website. I used http://localhost:8080/SID/sid.php to run the SID but I am getting the following error:
Error while constructing PDO object: SQLSTATE[HY000] [1045] Access denied for user 'sid'@'localhost' (using password: YES)
I have the password in the sid.php file. Is there another file I should be checking to see if a password should be defined there, maybe a config file.
I am also getting the following message in the middle of the SID screen:
Notice: Undefined variable: dbh in C:\XAMPP\htdocs\SID\sid.php on line 128
the code looks like this:
if($dbh) {
// set exception mode for errors (why is this not the default?)
// this is far more portable for different DB engines than trying to
// parse error codes
$dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
$SID['dbh'] = $dbh;
} else {
exit();
}
I am running version 3.2.1 of the XAMPP on a Wndows 8.1 laptop. I am using a local server. Any other information I need for somebody to help me.