WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Error establishing a database connection...?? (5 posts)

  1. jottingdesigns
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to install wordpress to http://www.jottingdesigns.com. When I run http://jottingdesigns.com/wp-admin/install.php I get a message saying: "Error establishing a database connection."

    I think maybe I screwed up the wp-config part of the installation. This is what I have written in the file:

    /** The name of the database for WordPress */
    define('DB_NAME', 'database_wordpress');

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

    /** MySQL database password */
    define('DB_PASSWORD', 'password_(my secure password prompted by blue host.com)');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    Is this wrong? Have I been an idiot.

    Thanks.

  2. jottingdesigns
    Member
    Posted 2 years ago #

    Thought I might have solved it by changing the script to:

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

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

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

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    But still getting the same error message :(

  3. govpatel
    Member
    Posted 2 years ago #

    If you using cpanel you need to use your Cpanel user name in

    /** The name of the database for WordPress */
    define('DB_NAME', 'wordpress');

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

    like cpanelusername_wordpress and cpanelusername_jotting

  4. jottingdesigns
    Member
    Posted 2 years ago #

    That's brilliant :) Thank you very much. Took me a while, but it's all resolved now.

  5. govpatel
    Member
    Posted 2 years ago #

    You are welcome

Topic Closed

This topic has been closed to new replies.

About this Topic