I have recent made a wordpress blog. I was located at "sub.main.com", and I made a full installation of the WordPress software at that directory through my server.
Then I wanted to change the directory to "main.com" (so it was no sub-directory" and I made a full backup of my home-folder of WordPress to my computer. I deleted the sub-directory, installed the WordPress software at "main.com" and thought that I could overwrite the whole home-folder in the new directory with the one on my computer.
But now, when I try to access wp-login.php I get the message in the browser: "Error establishing a database connection". Clearly something is messed up.
So, the situation is: I got a full home-folder containing all the WordPress information on my computer, but can't get it to work with an online directory. What to do?! And is there any way out of this?
Very frustrating - I hope that some of you can help me.
Thanks in advance