WordPress.org

Forums

Error establishing a database connection (3 posts)

  1. jdjbuffalo
    Member
    Posted 10 years ago #

    I get this "Error establishing a database connection" when trying to install.
    I have looked through a lot of the previous posts on this subject but I've found nothing that solves my problem.
    This is a Linux server (in-house) with MySQL: 3.23.58 and PHP: 4.3.8.

    Here is how my wp-config.php is configured:
    define('DB_NAME', 'wordpress');
    define('DB_USER', 'wpadmin');
    define('DB_PASSWORD', '*****');
    define('DB_HOST', 'localhost');

    I added the MySQL error at the bottom so that I could see what issue is. Here is what it says on the page:
    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 localhost. 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?
    If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    Access denied for user: 'wpadmin@localhost' (Using password: YES)

    I have also tried making the 'wpadmin' a user with all access to all databases, except granting access to other users, and it still doesn't work

    Any suggestions?

  2. Class
    Member
    Posted 10 years ago #

    The 'wpadmin' user have a password? Did you reload privs after editing user permissions?
    Can you connect to the db from a shell? #mysql -u wpadmin -p

  3. naina_redhu
    Member
    Posted 10 years ago #

    I am getting the same error - and I have no idea how to edit MySQL or pretty much anything else. I am a complete non-techie - please help! Oh! And I did read "all" the previous posts regarding this error and I still have no clue what to do about it. The following are the details available from the .php file:
    define('DB_NAME', 'asideblog');
    define('DB_USER', 'naina_redhu');
    define('DB_PASSWORD', '*******');
    define('DB_HOST', 'blog.aside.in');

    I had changed my user name and password from the default sometime back but had been able to log onto the blog, just today I am not able to log on. I use DreamHost.

Topic Closed

This topic has been closed to new replies.

About this Topic