Forums

Error establishing a database connection (4 posts)

  1. jamelb
    Member
    Posted 1 year ago #

    Ok so i am trying to install wordpress on my ubuntu 8.04 lamp server and this is what i get
    "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 localhost. 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."

    I have tried everything including copy & paste. This is not my first time installing wordpress and i have never had this issue until 2.6.2. any help or suggestion would be great.

  2. feryssss2008
    Member
    Posted 1 year ago #

    Oh my God we are same, help me too, my mail : febriano_laowe@yahoo.co.id

  3. jmsangro
    Member
    Posted 1 year ago #

    Having the same problem. Things I've tried that didn't work include:
    Using actual db server host name instead of 'localhost'.
    Changing db character set to utf8-general-ci

  4. jmsangro
    Member
    Posted 1 year ago #

    I got mine to work when I changed
    define('DB_HOST', 'localhost');
    to
    define('DB_HOST', 'localhost:/tmp/mysql5.sock');
    I got the above string from the control panel from my web hosting service.
    This resource looked helpfull too.
    http://codex.wordpress.org/Editing_wp-config.php#Possible_DB_HOST_values
    Thanks jeremyclark13 !

Topic Closed

This topic has been closed to new replies.

About this Topic