• HELP !

    Getting “Error establishing a database connection” during the install after the page that says “ok Sparky”. I can see the wp_ db tables in mysql so I KNOW THE DB IS WORKING. It’s only after i’m configuring the initial site when the wp-login.php page comes up that I get the above error.

    Seems like an Apache mis-configuration, but i’m not sure what could be missing.

    I’m able to logon to mysql using the mysql client using the user that’s in the wp-config.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you verified that your hostname is correct? That’s the address to your MySQL database. If you’re certain that the username and password are correct then your hostname is probably what’s giving you a problem. If this is a local install use localhost, otherwise I would consult your hosting provider.

    Thread Starter tc490225

    (@tc490225)

    The host name is correct. The wp_ tables are being created in mysql db. There is no hosting provider, I am hosting the DB’s on other servers.

    It sounds like Apache is communicating with the DB since the tables are being created. It sounds more like a permissions issue now. Have you verified the permissions for your WordPress database user? I would recommend granting all permissions to the the WordPress database user and see what happens.

    Thread Starter tc490225

    (@tc490225)

    followed the installation guidance..

    GRANT ALL PRIVILEGES ON databasename.* TO “wordpressusername”@”hostname” IDENTIFIED BY “password”;

    At this point I would go through your logs and find the specific error message it’s generating.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error establishing a database connection during wp-login.php’ is closed to new replies.