Error establishing a database connection (4 posts)

  1. Trying
    Posted 7 years ago #

    Please can anyone help me?

    I am trying to set it up wordpress urgently but its not working.

    The information I have is on my server is Nickname, URL, password, Server (which is the domain name plus co.uk - is this an unusual format?) & username (a number preceeded by the letter u - is this an unusual format?). Where would these fit within the below?

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

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

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

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

  2. Trying
    Posted 7 years ago #

    Do i have to check any settings on my server? Or set up any databases?

  3. dremation
    Posted 7 years ago #

    db_host is not always localhost. I know with GoDaddy they have seperate MySQL servers. So does DreamHost. Try the IP or address of the actual MySQL server. Maybe mysql.yourdomain.co.uk

  4. Samuel B

    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic