1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Installation Error

Discussion in 'Blogging' started by DopeTM, Jan 13, 2013.

  1. DopeTM

    DopeTM Junior Member

    Joined:
    Dec 22, 2012
    Messages:
    176
    Likes Received:
    26
    I just installed wordpress on my site but I am trying to go on it, and it says "Error establishing a database connection"

    I tried googling it but couldn't find a solid answer. anyone experience this before?
     
  2. fbrcold

    fbrcold Junior Member

    Joined:
    Jul 13, 2008
    Messages:
    167
    Likes Received:
    305
    Occupation:
    Take a Guess
    Location:
    USA
    Something is not right in your wp-config.php . Make sure everything is accurate in that file.

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'database_name_here');

    /** MySQL database username */
    define('DB_USER', 'username_here');

    /** MySQL database password */
    define('DB_PASSWORD', 'password_here');

    /** 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', '');
     
  3. ikstob

    ikstob Junior Member

    Joined:
    Nov 12, 2012
    Messages:
    147
    Likes Received:
    129
    Location:
    ikstob.com
    Home Page:
    It means the details you provided on the set-up page (database connection details) are wrong. Delete the wp-config.php file and do it again, check that you copy the database connection details exactly.

    edit: Or edit the file manually of course ;o) doh!
     
  4. DopeTM

    DopeTM Junior Member

    Joined:
    Dec 22, 2012
    Messages:
    176
    Likes Received:
    26
    alright i'll try to delete it and re-do it. will let you know what happens :)

    thanks for the info guys
     
  5. wappi

    wappi Registered Member

    Joined:
    Oct 9, 2010
    Messages:
    54
    Likes Received:
    8
    Occupation:
    Freelancer
    Location:
    Europe
    There is no need to delete the wp installation, just check the data in wp-config.php. If the problems persist, check with phpmyadmin if wordpress created some database structure, delete it and try again.