• My WP blog is down. When I go there, I get this message:

    Error establishing a database connection

    I called GoDaddy, my host, and they said:

    There is a Word Press problem with scripting in a file. The file is:

    wp-config.php

    He said to look at connection streams to be sure they are updated. The data base has a disconnect.

    What does this mean? What should I look for?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Please make sure the following four parameters are correct. There may be a typo in one of them…

    Database Name
    Database User
    Database Password
    Database Host

    For more information, please check editing wp-config.php file in the codex.

    Thread Starter gfrancisco51

    (@gfrancisco51)

    Thank you – I cannot seem to open the wp-config.php file. When I try to open it in a browser, I get the same error. How do I do that?

    It can not be opened in the browser such as https://yourdomain.com/wp-config.php. Your webhost should have a way to edit this file (something like “file manager“) or you may have to use FTP to access and edit this file.

    Thread Starter gfrancisco51

    (@gfrancisco51)

    Thank you so much. I actually got in and was able to make the edits. Now, when I go to my blog, it shows up as the default theme, not the one I built. When I try to enter my url.com/wp-admin, I am not going to my dashboard in wordpress. So close! Now what?

    Does url.com/wp-admin show any error?

    If it doesn’t, please enable debugging in wp-config.php file.

    Thread Starter gfrancisco51

    (@gfrancisco51)

    my url is bigshootout.com. when i enter https://www.bigshootout.com/wp-admin, i get a blank non-responive page in my browser. No error message. The address bar at the top of the browser reads:

    https://bigshootout.com/wordpress/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F

    It used to read:

    https://bigshootout.com/wp-admin

    and give me a box to enter my login and password.

    When I log in to my database manager at godaddy, I don’t see anyplace to enable debugging. I did see where I could change “WP_DEBUG’ from false to true, which I did. Still blank page after I enter my url/wp-admin.

    Thank you very much for your help. It is greatly appreciated.

    You may want to login at https://bigshootout.com/wp-login.php

    It looks like there are two WordPress installations. One at the domain root and another at the sub-folder.

    Thread Starter gfrancisco51

    (@gfrancisco51)

    Pothi – you are right, there are two installations. One at the root, one in a subfolder. I did that when I was first installing wordpress, couple years ago. I have been ignoring the one that is in the subfolder all this time – only using the one at root. But since I updated the database configuration this morning, every time I try to log in to admin, it sends me to the wordpress installation in the subfolder – the one I’ve been ignoring. So I deleted it from server (after a lot of consternation). Now, when I log in to admin, It still wants to go to the one in subfolder, even though it isn’t there anymore. I can’t seem to force it to find the one at root.

    songdogtech – I tried what you suggested, although it doesn’t seem to be affecting anything, probably because of what I told Pothi, above.

    Do i need to change something else somewhere?

    I’m not sure why the other installation is showing up for you. It may be due to the database connection information that is still pointing to the old database. I may be wrong.

    Please try setting the WordPress address and blog address via wp-config.php file, like this…

    define('WP_SITEURL', 'https://url.com');
    define('WP_HOME', 'https://url.com');

    Please make sure it goes before this line (probably at the top of wp-config.php file just after the first line) …

    /* That's all, stop editing! Happy blogging. */

    Thread Starter gfrancisco51

    (@gfrancisco51)

    I did what you suggested. Now, when I go to bigshootout.com/wp-admin, it indeed prompts me to the admin login, but now, it doesn’t recognize my admin login. It shakes at me, indicating I’m giving it the wrong info, but I know it’s right. When I ask to reset my password, it tells me it doesn’t recognize my email address.

    It means that the database that is connected with the root installation is wrong. You may want to connect to the other database. There should be two databases. One for the root installation and the other for the sub-folder installation. Even though the sub-folder files are deleted the database is still connected with the root installation. I hope you understand my point.

    If you still want to use the current database and want to reset the password, please check this post on how to reset the password. It’s a sticky post too.

    Thread Starter gfrancisco51

    (@gfrancisco51)

    I do understand your point, How do I connect to the other database? Is that with myphp at go daddy?

    To connect to the other database, you only need to change the four parameters that I mentioned earlier here.

    Once you connected to the correct database, then you may remove the following lines that you have added in your wp-config.php file…

    define('WP_SITEURL', 'https://url.com');
    define('WP_HOME', 'https://url.com');
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘WordPress Blog is Down – GoDaddy Says This is Why. What do I do?’ is closed to new replies.