• Hello ALl,

    I have the same “Error establishing a database connection”
    I have gone through this forum and followed through with the below recommendations, but to no avail. Please help.

    The site is http://wimsal.com/wordpress/wp-admin/

    define(‘DB_NAME’, ‘xxxxxxxx’);

    /** MySQL database username */
    define(‘DB_USER’, ‘xxxxxxxx’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘xxxxxxx’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    Thanks ALL.

    Best Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Check your database details with your hosts.

    WP Ebooks

    (@wordpress-ebooks)

    I think the problem lies with MySQL hostname. It is currently pointing to localhost which would imply a local installation on your own computer.

    As esmi says, check the details with your webhost.

    Once done just go to http://wimsal.com/wordpress/ and the installation wizard should start.

    which would imply a local installation on your own computer

    Not necessarily. My preferred hosts using localhost as the db hostname.

    dentalpulseacademy

    (@dentalpulseacademy)

    My website http://dentalpulseacademy.com/home/ is giving me the message, “Error establishing a database connection”

    How can this be fixed?

    Thread Starter Mokor

    (@mokor)

    Hi Dentalpulseacademy,
    Your website functions OK, and I cant see the “Error” you mentioned in your post.
    From my experience in solving my situation, I contacted my webhost and it was fixed. That was after I had randomly edited the “config.php” file to no avail.

    Best Regards

    Hello, I an getting the “Error establishing a database connection” error too but seems like a simple fix that I just cant find. Here’s what I did in trying to replace an Existing website:

    1. In WordPress, under “General” Tab I changed the changed the home page and directory page address to existing website address.

    2. In FTP Client, I copied old site content into “old site folder”

    3. Copied WordPress (New Site) folder contents into “public_html” where original site WAS.

    now when I go to actual site I get error AND I cant even log onto WordPress Admin.

    Is there a way to restore where I can get into WP Admin like I did previously?

    As per the Forum Welcome, please post your own topic.

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