Title: database connection issue
Last modified: August 6, 2020

---

# database connection issue

 *  [thooker007](https://wordpress.org/support/users/thooker007/)
 * (@thooker007)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-connection-issue-5/)
 * Error establishing a database connection
    This either means that the username
   and password information in your wp-config.php file is incorrect or we can’t 
   contact the database server at localhost:3306. This could mean your host’s database
   server is down.
 * Are you sure you have the correct username and password?
    Are you sure you have
   typed the correct hostname? Are you sure the database server is running?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-connection-issue-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [peterv74](https://wordpress.org/support/users/peterv74/)
 * (@peterv74)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-connection-issue-5/#post-13215258)
 * Hello
 * Looks like you are installing WordPress manually in a domain using a copy of 
   an already installed WordPress.
 * Would be easier if you use the Softaculous App Installer in your Cpanel to install
   because it creates all the Database Details for you and it will provide easy 
   access to the admin in case you forgot your admin password.
 * If you prefer to migrate an already installed WordPress site let us know, so 
   we can provide more information on that matter.
 * I hope this can be of use to you.
 * Best regards from QVcreative.
    -  This reply was modified 5 years, 10 months ago by [peterv74](https://wordpress.org/support/users/peterv74/).
    -  This reply was modified 5 years, 10 months ago by [peterv74](https://wordpress.org/support/users/peterv74/).
 *  Thread Starter [thooker007](https://wordpress.org/support/users/thooker007/)
 * (@thooker007)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-connection-issue-5/#post-13215267)
 * thanks for the response. I will give it a try and get back to you
 *  Thread Starter [thooker007](https://wordpress.org/support/users/thooker007/)
 * (@thooker007)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-connection-issue-5/#post-13218296)
 * did not work
 *  [peterv74](https://wordpress.org/support/users/peterv74/)
 * (@peterv74)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/database-connection-issue-5/#post-13226535)
 * You could install WordPress from the Cpanel (that by far is the best option),
   look at the last option “Softaculous Apps Installer”, normally the WordPress 
   installer is the first option.
 * There is an option at the Cpanel under “software” named “WordPress Manager by
   Softaculous”, that will lead to the same installation window, let me know if 
   you need more help at the installation window.
 * If you want to try to use your WordPress in your website directory, you could
   use the Cpanel database menu to create an empty database with a user name and
   password; use the file manager to change the WordPress file named wp-config.php
   to wp-configbak.php, then the next time you enter at the website WordPress will
   show the install window and will ask for a database name (use the new one you
   just created), a database user (use the new one you just created) a database 
   user password (use the new one you just created), the host (use Localhost) and
   the table prefix (use wp_ if you like).
 * Changing the config file name **must** start the installation, otherwise, your
   WordPress copy surely needs a replacement.
 * I hope this can be of use.
 * Best regards.
    -  This reply was modified 5 years, 10 months ago by [peterv74](https://wordpress.org/support/users/peterv74/).

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

The topic ‘database connection issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [peterv74](https://wordpress.org/support/users/peterv74/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/database-connection-issue-5/#post-13226535)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
