Troubles connecting to mysql database (2 posts)

  1. bandward
    Posted 10 years ago #

    Am trying to install WordPress...but having problem connecting to the database.

    I created a MySQL database....and filled out the appropriate username, database name info in wp-config.php and ran the install.php file. It will not connect to the database.

    I went into PhpMyadmin....created a small test table, and then created a simple query using asp/vbscript to see if it could access the table with the same parameters that I was putting in the wp-config.php file. I was successful with asp but not with WordPress!

    Here's my connection string for ASP

    db.Open "Driver={MySQL ODBC 3.51 Driver}; Server=; Database=bdwinternet;Uid=bandward;Pwd=hard2forget;);"

    Here's my config info in wp-config.php

    // ** MySQL settings ** //
    define('DB_NAME', 'bdwinternet');
    define('DB_USER', 'bandward');
    define('DB_PASSWORD', 'hard2forget');
    define('DB_HOST', '');

    What am I doing wrong? I'm baffled...

  2. bandward
    Posted 10 years ago #

    Okay....Sorry to admit....but I found out that I had two wp-config.php files hanging around...and I was editing the wrong one. Finally found the 'right' one and it's now connecting!

Topic Closed

This topic has been closed to new replies.

About this Topic