WordPress.org

Ready to get started?Download WordPress

Forums

I have messed up with wordpress directory?! (10 posts)

  1. oebro
    Member
    Posted 5 years ago #

    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

  2. stvwlf
    Member
    Posted 5 years ago #

  3. Shane G
    Member
    Posted 5 years ago #

    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]

  4. oebro
    Member
    Posted 5 years ago #

    I do not have a database backup - only the map system? Am I lost then?

  5. oebro
    Member
    Posted 5 years ago #

    ?

  6. stvwlf
    Member
    Posted 5 years ago #

    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

  7. oebro
    Member
    Posted 5 years ago #

    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..

  8. oebro
    Member
    Posted 5 years ago #

    And I have no wp-posts or wp-options in my map system on my local computer :S

  9. oebro
    Member
    Posted 5 years ago #

    Any suggestions?

  10. oebro
    Member
    Posted 5 years ago #

    Really no solution?

Topic Closed

This topic has been closed to new replies.

About this Topic