I am using wamp on my machine with windows 7 operating system. I am trying to install Drupal 7 site in the localhost. I have successfully uploaded database, but when I try to run site into browser I get following error:
PDOException: SQLSTATE[HY000] [1045] Access denied for user 'sdt'@'localhost' (using password: YES) in lock_may_be_available()
I'm trying to set up a multisite installation, with www.mysite.com as the main domain and sub.mysite.com as a subdomain. I'm not running my own server; I'm just running a website hosted by Aplus.net, and they do not use CPanel for the back-end.
I have two existing live sites running drupal 7 (site1.com/en and site2.com/en --> /en for language english) and want to unite them using subdirectory urls (site1.com/en/site2) with seperate databases. I first tried to follow on my computer (Windows 7) the documentation for installing multisites since I am still a beginner in Drupal.
1. I created a new database db1, run the script of site1 backup and db2 for site2.
I have installed DRUPAL succesfully in my locahost.
But now if I try to run the application by typing localhost/drupal/index.php I get the next error message
PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in lock_may_be_available() (line 167 of C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\drupal\includes\lock.inc).
Trying to install DRUPAL, I get to the section about the DB and I get this error
Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [1049] Unknown database 'mydb'
The thing is that I have created a DB called mydb using MySQL. Also mysql is running, and I can connect to the database "mydb" with not issue, but for some reason I dont know DRUPAL cant.
I have tried to put in the PATH the mysql server bin folder in case DRUPAL could not execute it or something, but not really sure of what else to try.