Support » Installing WordPress » wp-config-sample.php

  • I can’t install a self hosted site.
    The steps I have taken are:
    1 – Downloaded WP.
    2 – created a MySql database with ny host.
    3 – edited the wp-config-sample.php file my with new
    DB-name, Username, & password.
    4 – Saved this file as wp-config.php
    5 – Uploaded the whole package via ftp.
    6 – went to

    and I get an error message.

    ‘username/password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost.’

    This is the bones of my config file

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘MYblogname’);

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

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

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

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

    I Have no idea what I’m doing wrong. Do I need to change the ‘MySQL hostname’ also?

    Any help is greatly appreciated & will be reciprocated in the future!



Viewing 5 replies - 1 through 5 (of 5 total)
  • if you using Cpanel you need add prefix for database name and user name like cpanelusername_databasename

    I am editing the php file in Dreamweaver, and my host is Register365.

    Not sure what you mean. Don’t know what Cpanel is.

    What other info can I give you?

    Ask your host for help as I do not know what register365 use for you panel

    thanks. I’m awaiting a response from them,

    I think I may have solved this.

    For others with the same issue:

    I was told not to edit anything in that config.php except for
    this didn’t work for me. Apparently some users also have to change their DB HOST label from ‘local’ to ‘whatever details are given to you by your hosting company’

    For my own reference I will be logging my developments here if thats okay

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wp-config-sample.php’ is closed to new replies.