WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Lost everything when trying to move from localhost to live (5 posts)

  1. freyd
    Member
    Posted 2 years ago #

    Hello everyone.

    After 3 weeks of using WordPress on my localhost, I finalized my website. With excitement I moved everything on my FTP (replacing the previous website). Then I go to the url to confirme it is online and I get a WordPress login box. I'm thinking it's a bit weird but ok, I input my login and password and I click "install" because I have no other choice. Then I'm online on my url/wp-admin.php and I only see an empty blog... I ask a colleague to go to the url, she sees an empty blog instead of my customised header+many tabs and contents I prepared.
    Then I go to localhost/wordpress and it tells me "error establishing database connection".

    Did I lose all my articles? How can I access to the admin page now? I didn't move anything.

    I'm a beginner, obviously and I've been looking through the forum but didn't find the exact same thing happening to anyone.

    Thanks in advance for your comments.

  2. faheemsial
    Member
    Posted 2 years ago #

    is it still working fine on localhost?

  3. freyd
    Member
    Posted 2 years ago #

    Hi,
    No, when I try to access it on localhost, it says error establishing database connection... Eventhough I didn't move the location of my wordpress folder.

  4. Kapi
    Member
    Posted 2 years ago #

    What OS and software are you running?

    What we want to do is check to see if the database is still intact, and we'll work from there. If you're running Windows with WAMP or XAMPP, you should be able to access phpmyadmin using //localhost/phpmyadmin/

    From here, you'll want to take a look at the database you installed your site to. This is the database name you used during the WordPress installation.

    I don't have access to my DB at the minute, but you're going to look for a table called WP-Posts (Or something like that.) Look under the "Rows" column and see what number is there. If its 0, there's a problem.

    If you need step by step instructions on how to do this, I'll be more than happy to help you

  5. freyd
    Member
    Posted 2 years ago #

    Thank you Kapi, the database was intact. I managed to export it and my website works fine now!
    Topic closed :)

Topic Closed

This topic has been closed to new replies.

About this Topic