Support » Installing WordPress » Troubles connecting to mysql database

  • bandward


    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…

Viewing 1 replies (of 1 total)
  • bandward


    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!

Viewing 1 replies (of 1 total)
  • The topic ‘Troubles connecting to mysql database’ is closed to new replies.