Title: Database connection problem
Last modified: August 18, 2016

---

# Database connection problem

 *  Resolved [redtruck](https://wordpress.org/support/users/redtruck/)
 * (@redtruck)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/database-connection-problem-2/)
 * I had WordPress 1.5.1.1 installing with one click through cPanel on an Apache
   server, then it stopped working. After several efforts to find help on the cPanel
   forum, my hosting techs and this forum, I decided to start with a fresh install
   in a fresh hosting account. When run the wp-admin/install.php program, I get 
   the “Error establishing a database connection” error. My server is up. I’ve double-
   checked the database name, username, password, and the host name is “localhost.”
   PHP Version is 4.3.11, MySQL Version is 3.23.49, Zend Version is 2.5.7. Permissions
   for the 4 wp- folders is 755. Permissions for the files are 644. suexec is disabled.
   I don’t know what other information to give you. WP worked before on this server
   with one-click installs. Now it doesn’t work at all. MySQL is working for other
   applications I have on this server. If I need to check anything else on this 
   server, please give specific instructions. I really appreciate any help you can
   give me. Thanks, Bob

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/database-connection-problem-2/?output_format=md)
[1](https://wordpress.org/support/topic/database-connection-problem-2/?output_format=md)
2

 *  [fundog5](https://wordpress.org/support/users/fundog5/)
 * (@fundog5)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235719)
 * Since this thread is marked “resolved,” would I be better off posting my issue
   in a new thread? I’ve followed the codex to the letter, have confirmed necessary
   configs with my hosting service and have validated simple PHP-MySQL connections.
   I don’t see what else could be wrong unless there’s something up with this build
   of WP and the specific versions of MySQL and PHP I’m using. Any assistance that
   can be provided would be greatly appreciated.
    thanks- Jed
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235720)
 * Jed – do you use cpanel / vdeck / plesk / ensim ?
 * It’s probably that the database and database username have not been connected.
 *  [fundog5](https://wordpress.org/support/users/fundog5/)
 * (@fundog5)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235721)
 * Thanks for the reply, Podz.
 * According to the host’s documentation, they use H-Sphere control panel system,
   not any of the 4 you’ve mentioned.
 * Unless I’m mistaken, I’m pretty sure the user has been correctly connected or“
   added” to the database- I can login to the database using the username and password
   I setup initially and run SQL queries on the database through phpMyAdmin. Am 
   I missing something else? Should I try starting from scratch again?
    Thanks again.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235722)
 * I can’t see what you are missing – you look to have worked through it all, and
   as such you could try a reinstall but you may hit the same wall.
    Has any whitespace
   crept into the data above ? Can you ask your host what data they would complete
   without telling them what you have done (so they actually look rather than just
   saying “Yeah that looks right”)
 *  [fundog5](https://wordpress.org/support/users/fundog5/)
 * (@fundog5)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235723)
 * I’ll try a session with websitesource and see what they say. Otherwise, I’m open
   to letting you poke around in my host account, if necessary.
    – Jed
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235724)
 * If you want to email me – tamba2 @ gmail . com
 * 🙂
 *  [fundog5](https://wordpress.org/support/users/fundog5/)
 * (@fundog5)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235725)
 * Hi. Me again. So now the story gets more convoluted… I was using DreamWeaver 
   to upload files through its built-in FTP tool, and I think it wasn’t sending 
   properly. The wp-config.php file I had on my host was totally wrong. Even so,
   after having changed it (through another channel) and verified that it looks 
   correct, I still can’t get WP to not give me the “error connecting” msg.
 *  [fundog5](https://wordpress.org/support/users/fundog5/)
 * (@fundog5)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235726)
 * Issue resolved. I went into my control panel and changed the db user’s password
   to something simpler and did the same in the wp-config.php file. It seems to 
   have rectified whatever issues were causing the script to fail in the past. Thanks
   for all of your help, Podz.

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/database-connection-problem-2/?output_format=md)
[1](https://wordpress.org/support/topic/database-connection-problem-2/?output_format=md)
2

The topic ‘Database connection problem’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 23 replies
 * 6 participants
 * Last reply from: [fundog5](https://wordpress.org/support/users/fundog5/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/database-connection-problem-2/page/2/#post-235726)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
