Title: Database Error
Last modified: August 20, 2016

---

# Database Error

 *  [rodcav3](https://wordpress.org/support/users/rodcav3/)
 * (@rodcav3)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-95/)
 * 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!!!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [James G](https://wordpress.org/support/users/jamesg40/)
 * (@jamesg40)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-95/#post-3369503)
 * 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.
 *  [ismall](https://wordpress.org/support/users/ismall/)
 * (@ismall)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-95/#post-3369520)
 * 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..
 *  [James G](https://wordpress.org/support/users/jamesg40/)
 * (@jamesg40)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-95/#post-3369604)
 * You should probably read this first of all. [http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server](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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Database Error’ is closed to new replies.

## Tags

 * [database problems](https://wordpress.org/support/topic-tag/database-problems/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 3 replies
 * 3 participants
 * Last reply from: [James G](https://wordpress.org/support/users/jamesg40/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/database-error-95/#post-3369604)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
