WordPress.org

Ready to get started?Download WordPress

Forums

wp-config-sample.php (6 posts)

  1. johnjohn16
    Member
    Posted 2 years ago #

    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 http://www.mysite.com/WP/wp-admin/install.php

    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!

    Cheers,

    John

  2. govpatel
    Member
    Posted 2 years ago #

    if you using Cpanel you need add prefix for database name and user name like cpanelusername_databasename

  3. johnjohn16
    Member
    Posted 2 years ago #

    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?

  4. govpatel
    Member
    Posted 2 years ago #

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

  5. johnjohn16
    Member
    Posted 2 years ago #

    thanks. I'm awaiting a response from them,

  6. johnjohn16
    Member
    Posted 2 years ago #

    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
    DB NAME
    DB USER
    DB PASSWORD.
    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

Topic Closed

This topic has been closed to new replies.

About this Topic