Support » Installing WordPress » Error establishing a database connection…??

  • Resolved jottingdesigns

    (@jottingdesigns)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 🙁

    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

    That’s brilliant 🙂 Thank you very much. Took me a while, but it’s all resolved now.

    You are welcome

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