• HI,
    today I updated some of wordpress plugins (visitor counter, updraftplus, galleria and security) on school website. Affter the update the website stoped working and only thing that is shown on the website is message “Error establishing a database connection”. I don’t know where and how things went wrong. I did everything as usual.
    I need very uregent and fast help in solving this problem because of high importance of website for distribution of information to parents and students.
    Thank you for your help,

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi danapestic,

    I would check with your WebHost to make sure the database is still up, and that no tables got corrupted and need to be repaired.

    The only other thing it could be is user/pass/connection string got changed in wp-config but it does not sound like anything changed there.

    Blake

    Dion

    (@diondesigns)

    If you haven’t resolved your issue yet, here’s something to try. In your wp-config.php file, you’ll find the following line:

    define('WP_DEBUG', false);

    Change it to these two lines:

    define('WP_DEBUG', true);
    define('WP_DEBUG_DISPLAY', true);

    WordPress will now display the actual database error instead of a non-helpful “Error establishing a database connection” message. Please post that message here, and we should be able to help you resolve this.

    After you post the error message here, you should change the above two lines back to:

    define('WP_DEBUG', false);

    Thread Starter dariapestic

    (@dariapestic)

    Hi,
    can you tell me how do I get to the wp-config.php file. I can’t access administration view of website.
    Also if I go back to privious versions I get this message.

    “”
    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 mysql.skole.hr. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
    “”
    Thank you

    Dion

    (@diondesigns)

    Accessing wp-config.php is done through FTP, or through your hosting company’s control panel.

    You should contact your hosting company, because it appears you are unable to connect to the MySQL server. Perhaps your hosting has limits on database access, and you have exceeded those limits.

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