Hey all
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
/oebro
Hi,
If you are moving your blog within domain then you need to change the permalinks settings, SiteURL details from database etc..,For further details on this you can refer this article on your query:
[spam link moderated]
I do not have a database backup - only the map system? Am I lost then?
You don't need a database backup in your situation as the problme is not lost data.
#1 you need to update your wp-config so WP can connect with your database
#2 you will need to run SQL query on the database to change all references to the old location over to the new location.
Here is an article
http://www.velvetblues.com/web-development-blog/how-to-move-a-wordpress-blog-or-website/
scroll down to the section
Sample Query To Update WordPress Settings
to see the SQL.
MAKE SURE YOU MAKE A BACKUP OF YOUR DATABASE BEFORE YOU DO THIS.
You can make a backup in phpMyAdmin using Export
Oh, I see - great way around most things - but it did not help me :S
See - I have forgot to make an database backup at the old domain. I only got the map system. This means that I am able to regain the layout, the pictures etc, but I can not regain the posts :S. I have no database to restore at the new domain - am I lost? Do I have to remake all the posts?
Thanks..
And I have no wp-posts or wp-options in my map system on my local computer :S