WordPress.org

Ready to get started?Download WordPress

Forums

database connection problem (5 posts)

  1. dobroin
    Member
    Posted 2 years ago #

    Have installed wordpressat least 3 times before. Doing install for friend tonight. Have reset wp-admin/config.php with correct details.
    Getting error message when running install.php

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at mysql4.mylogin.ie. This could mean your host's database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?

    I can connect to database using login details via the control panel for my host (register365.ie) but cannot get the install to work.
    Any help appreciated

  2. Tara
    Member
    Posted 2 years ago #

    - Error connecting to your database is common, but it isn't necessarily a problem with wordpress itself. -First, try contacting the hosting provider if the database server is online / if they have any other problem at their end, or they made any changes to your account, or if there are any limitations/restrictions, etc .

    - double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.

    -Then check that you don't need to change the database host from "localhost" to something else. You can get that info from your hosting provider.

    -Check you have actually created a database with the same database name as is in your wp-config.php file.

    -Last, but not least, if all that information is correct your database probably has a problem with it, and you may need to contact your hosting provider.

    There are also many threads on this topic on these forums: http://wordpress.org/search/Error+establishing+a+database+connection?forums=1

  3. HostMantis
    Member
    Posted 2 years ago #

    It sounds like you have the database hostname incorrect. Contact your host to make sure you are using the correct database hostname. If they verify it is correct, request further assistance from your host and they should be able to point you in the right direction.

  4. RichardWPG
    Member
    Posted 2 years ago #

    Contact your host to check for your database credentials.

  5. dobroin
    Member
    Posted 2 years ago #

    Hi all and thanks for your responses.
    I now that the database is set up and accessable as I can access and view it from the control panel for the site. I have also set up a second database with different settings to test and I can connect to it via the control panel also.
    The config.php file is set correctly and has been checked multiple times.
    I guess the next step is to contact the host. I'll get back here with progress (or lack of :( )

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.