WordPress.org

Ready to get started?Download WordPress

Forums

Database Error (4 posts)

  1. rodcav3
    Member
    Posted 1 year ago #

    I just uploaded files from a localhost to a live server...but now I can't login to my wordpress dashboard..I keep getting this error message
    "Error establishing a database connection"...where could I have possible screwed up and how can I fix it
    Please help URGENT!!!

  2. jamesg40
    Member
    Posted 1 year ago #

    you dont have the exact same settings in your localhost wp-config file as you do for you live database. Meaning, you need to edit your wp-config file and use the db name, username and pw for the new database on the live server.

  3. ismall
    Member
    Posted 1 year ago #

    i also have same problem...
    but i dont understand what are talking about
    can you help me how to fix it...

    PLEASE i am newbie about it..

  4. jamesg40
    Member
    Posted 1 year ago #

    You should probably read this first of all. http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server

    Ok, the first thing you should do when moving a theme from localhost to live server is go under the general settings and change the links (both of them) to your live site server link. So if on your localhost the links are "localhost/mynewtheme" you nee to change those to the new live site url like so "www.mynewlivesite.com" in both places.
    Then when you set-up your new live wordpress site, you will need to change the wp-config file and edit the database name, username and password to match your live sites database name, usernam and password. When you open up the wp-config file in a text editor you will see them.
    Be sure to change the links under setting on your localhost to the new live links first.

Topic Closed

This topic has been closed to new replies.

About this Topic