Hi, I'm new in this community and I just installed the 7.9 version of Drupal, because I need to modify a site that a friend of mine sent me (problems fixing video playing). The problem is, he sent me the folder "sites", I installed wampserver to work on it offline, but when i try to open the projecton http://localhost it tells me
Drupal already installedTo start over, you must empty your existing database.
To install to a different database, edit the appropriate settings.php file in the sites folder.
To upgrade an existing installation, proceed to the update script.
View your existing site.
Is it because I don't have the database he used for his project?
An important thing to say in this case I think is that if I try to click on update script, I get the message
Error
Error message
PDOException: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in drupal_get_installed_schema_version() (line 150 of C:\wamp\www\mir\includes\install.inc).
The website encountered an unexpected error. Please try again later.
Does someone know a way to figure this out? Thanks in advance
Comments
Well you're going to need the
Well you're going to need the database. Get your friend to send you that, and import it into Mysql, using the database name, database user name and password found in the settings.php file - which is most probably in /sites/default/
You're then going to need the rest of a Drupal7 base install - download and install this on your WAMP server, then replace the /sites directory with the one you've been sent. The sites directory contains most of the individual customisation of the website that isn't stored in the database - but most is stored in the database .Then try again. Good luck. For someone with no experience this might be quite a challenge.
Colin
do you mean
do you mean that i should open the settings.php file? with which software? and once I have the database, where shall I put it?, or what should i do next?
I forgot to say that I even have a .backup file, and another one called "projectname"-drupalDB (without extension). Is this important?
i think i have
i think i have the database dump and the backup file, but now, after creating a new database, and deleting the settings.php files, i try to open again the project in localhost and i get this message
i tried to do what you suggested. but after trying to open the project in localhost i get this message
What should i do? anything wrong with what i've done?
1- Have you deleted the
1- Have you deleted the settings.php file without replacing it ?
Listen ...
2-you must go to my php admin and import the .sql file, under operations.
3-you must also create a user for that database which should be the same with the one your friend is using - and of course the same password.
If (1) applies, then you must place a new settings.php file in the dir. You can edit the file either with html editors or wordpad.
i replaced
i replaced the settings.php file of the folder they gave me with the default.settings.php of drupal original folder, then created the database, then changed the name of the file to settings.php... but now the problem is that i get this message
do you know what i'm supposed to do? or do you believe that it's better for me to not work on localhost (in that case, what should i do to enter the drupal installation?)
You must have both files in
You must have both files in your folder:
- settings.php
-default.settings.php
Do u?
no, i don't have them now...
no, i don't have them now... but look, there is something new, my friend told me:
what i don't understand now is how i can create a database (with phpmyadmin or with mysql shell), since i created one with myphpadmin but then it doesn't let me import the database because the dumpfile is too big. So i tried with mysql shell, but i don't know how to do that , because if i write
mysql -u username -pthen he asks me a password that i don't know.
What do you think? and thanks in advance.