[resolved] database error only when "wordpress" in the url (2 posts)

  1. tomatediabolik
    Posted 3 years ago #


    First, sorry for my english, it's really bad !

    Second, here's my problem. One of the old webmaster of my blog changed the password of the ftp server and the mysql database. So I had to change that password in the wp-config.php file. All worked well, but when I attempted to connect to manage my website (wp-login.php) I had the error message "Error establishing a database connection".

    After some search on the internet, I tried to repair my databases (define('WP_ALLOW_REPAIR', true);) and also tried this method in phpMyAdmin : UPDATE wp_options SET option_value='YOUR_SITE_URL' WHERE option_name='siteurl'

    The second one worked, and now I can connect to my blog. I can do all the things but I still encounter some error. Everytime there is the word "wordpress" in the url, there is a database problem (Error establishing a database connection), but when i delete that word in the url, no problem and I can see the page that I wanted to see.

    Can you help me please =(

  2. tomatediabolik
    Posted 3 years ago #

    I think that my problem is resolved, just need to add define('WP_HOME', 'mywebsite'); to wp_config.php

Topic Closed

This topic has been closed to new replies.

About this Topic