• After following instructions here:
    http://codex.wordpress.org/Installing_WordPress

    for a WAMPserver install on my laptop PC running Windows 8, I get the “Error establishing a database connection” page after running …/wp-admin/install.php in my Chrome browser.

    WordPress files are in a subdirectory ‘wordpress’ under …/wamp/www/ .

    I can see that the database server is running in phpMyAdmin’s “Status” page.

    And I’m very sure that I have the database and user settings typed correctly in my wp-config.php file.

    So I don’t know what to do next other than post here.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter sholarpk

    (@sholarpk)

    I also tried adding a second user ‘test’ with an ultra-simple password, and put those into wp-config.php. I double-checked the name of the MySQL server host, and that name is also in wp-config.php. I run install.php again, and I get the same error. No specific source of the error! The database server is still running!

    Thread Starter sholarpk

    (@sholarpk)

    I turned off Windows Firewall and tried again. Same result.

    Have you checked the name of your mySQL server ? Usually its ‘localhost’

    Julien Klepatch
    WordPress Developer – julienklepatch.com

    Thread Starter sholarpk

    (@sholarpk)

    Yes.. I cannot make the simplest connection to this MySQL database environment. The ‘testmysql.php’ in root that comes with the package does not work, so there is something deeply wrong with my WAMP install. I cannot access my MySQL database for WordPress using any of the users and passwords that I defined. I have uninstalled the entire WAMPserver package and will try another.

    ok. another thing you may try if you still have this problem, is to try to connect to your database with the mysql command-line interface:
    http://dev.mysql.com/doc/refman/5.5/en/mysql.html

    If you can connect and run some statements (ex: select statements), it means you have a problem with your WordPress install, otherwise you have a problem with your WAMP install.

    I dont much about WAMP, with a XAMPP server on my computer everything works fine, and none of my clients never reported any problems with it either. So you may want to try XAMPP, if everything else fails.

    Julien Klepatch
    WordPress Developer – julienklepatch.com

    Thread Starter sholarpk

    (@sholarpk)

    ok, XAMMPP will be next. … thanks.

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

The topic ‘Error establishing a database connection’ is closed to new replies.