• Hey fellas I am having the darnedest time attempting a fix. Forum thread after thread and no solution works yet. Every time I try to install WordPress in my localhost database WAMPSERVER 2.4 (32 BITS & PHP 5.4)-Apache : 2.4.4 MySQL : 5.6.12 PHP : 5.4.16 PHPMyAdmin : 4.0.4 SqlBuddy : 1.3.3 XDebug : 2.2.3

    Please do send some directions my way if you would please, I’m running out of time!

    Thanks in advance!
    Christina
    ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • umm.. whats your problem exactly? switching between localhost and 127.0.0.1 in wp-config.php helps sometimes..

    Thread Starter Christina3467

    (@christina3467)

    I cqannot build a wp_config file. That’s where I’m stuck..(installing wordpress to a new database.

    So I opened wordpress, in it’s WWW folder inside WAMP, fresh from download and found only a wp_congig_sample.php. So I opened that in Dreamweaver and added the parts in bold:

    define(‘DB_NAME’, ‘sd‘);

    /** MySQL database username */
    define(‘DB_USER’, ‘sd‘);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘1234‘);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    …Then I saved it as wp-config.php in the wordpress folder. And then Attepmt to goto localhost/wordpress to install again…. So I get more error msgs. telling me that I need a wp_config_sample.php file and told to do this and that…End result : a wordpress folder with ONLY a wp-config-sample.php file and the same error msg as I wrote this thread about!? Back to where I began ??

    Thread Starter Christina3467

    (@christina3467)

    RESOLVED: I edited the wp-config.php file again and it worked

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The Infamous 'Error establishing a database connection’ is closed to new replies.