Title: Database problems &#8211; Error establishing a database connection wp-config.php
Last modified: August 30, 2016

---

# Database problems – Error establishing a database connection wp-config.php

 *  [hannahcarroll95](https://wordpress.org/support/users/hannahcarroll95/)
 * (@hannahcarroll95)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-problems-error-establishing-a-database-connection-wp-configphp/)
 * Hello All!
    I am very new to wordpress and have encountered a problem that does
   not let me log into any part of my website. I use wordpress online and have never
   downloaded it to my computer. I spoke to my hosting about the problem I was receiving
   and they said that I have to change my password in my database through phpMyAdmin.
   This is straight forward enough however i am encountering problems when it comes
   to accessing my wp-config.php file. As I have never downloaded wordpress I do
   not know how to access the wp-config.php file, anyone know how I would go about
   this?
 * Kindest Regards!

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-problems-error-establishing-a-database-connection-wp-configphp/#post-6883525)
 * To edit your wp-config.php file, access your server via [FTP or SFTP](https://codex.wordpress.org/FTP_Clients)
   and edit the file with a [plain text editor](https://codex.wordpress.org/Editing_Files#Text_Editors).
 *  Thread Starter [hannahcarroll95](https://wordpress.org/support/users/hannahcarroll95/)
 * (@hannahcarroll95)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-problems-error-establishing-a-database-connection-wp-configphp/#post-6883541)
 * How would I gain access to a FTP or SFTP? Thanks Hannah
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-problems-error-establishing-a-database-connection-wp-configphp/#post-6883545)
 * You’ll need to check your hosting provider’s documentation or contact them, there’s
   no one exact standard method between all hosts.
 *  Thread Starter [hannahcarroll95](https://wordpress.org/support/users/hannahcarroll95/)
 * (@hannahcarroll95)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-problems-error-establishing-a-database-connection-wp-configphp/#post-6883699)
 * I keep getting error message using firezilla.
    anyone know what the problem could
   be, this is the error message.
 * Error: Could not connect to server
    Status: Waiting to retry… Status: Resolving
   address of [http://ftp.subtle.fm](http://ftp.subtle.fm) Status: Connecting to
   46.32.240.39:21… Status: Connection attempt failed with “ECONNREFUSED – Connection
   refused by server”. Error: Could not connect to server
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-problems-error-establishing-a-database-connection-wp-configphp/#post-6883723)
 * You’ll need to contact your hosting provider for help with that. You’re either
   attempting to connect to the wrong server, or you’re providing the wrong username/
   password, or your server is completely offline.

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

The topic ‘Database problems – Error establishing a database connection wp-config.
php’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [phpmyadmin](https://wordpress.org/support/topic-tag/phpmyadmin/)
 * [server](https://wordpress.org/support/topic-tag/server/)
 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/database-problems-error-establishing-a-database-connection-wp-configphp/#post-6883723)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
