• So I’m new to this blog stuff and I had Fantastico set it up for me on my site through cPanel. When I go to the URL that shoudl contain the blog I get a “Error establishing a database connection” message. Does anyone have any ideas on how to troubleshoot this? There are a ton of files and I am not sure where to begin looking for the problem. I have gone over wp-config.php several times, but it seems like everything is correct there.

    Anything else I should look for?

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • look in host’s control panel in the mysql section. Get the database info and compare to what is in wp-config.php

    Thread Starter luckygam

    (@luckygam)

    I checked all that and it all looks correct, as far as I can tell. However, I suspect there is something wrong with the password, or something related to it.

    Its pretty clear the password is stored as an md5sum that is the password that I set when I set it up. However, the password that was placed in wp-config.php is something that I do not recognize.

    If I change the password from the string I don’t recognize that is when I get the “Error establishing a database connection”. Also, if I try to login to the WordPress login for my site when the password is changed from the original string it says that it can’t connect to the MySQL database.

    If I leave the password string alone that I don’t recognize and try to do the same things the following problems happen:
    1. Going to my site’s blog results in the browser saying that there is a redirect error and that the connection will never complete.
    2. I can get to the WordPress login screen, but I am unable to login in with any password.

    What is wrong with this set up?

    Thanks.

    The following video should show you how to troubleshoot and fix this problem:

    https://educhalk.org/blog/?p=148

    Thread Starter luckygam

    (@luckygam)

    Those videos were great!!! Thank you so much! Turned out it was the table_prefix variable. If this really is a common problem, it seems like those video or the info in those videos might make a good sticky…

    Thanks again!

    You’re welcome…glad you got it fixed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.