WordPress.org

Support

Support » Installation » database and config file question from newbie

database and config file question from newbie

  • Hello all 🙂
    Ok, I’m doing it again. Installing wordpress for someone, and I messed up. (see what happens when you think you finally “have it” 🙂
    I messed up her database 🙁 so I went and added a new “database_b2”.
    but I noticed that on the old b2config files, it says:
    // ** MySQL settings **
    $dbname = ‘sitename_b2’; // The name of the database
    $dbusername = ‘sitename_username’; // Your MySQL username
    $dbpassword = ‘thepassword’; // …and password
    $dbhost = ‘localhost’; // 99% chance you won’t need to change this value
    // If you’ve finished up to here you should be able to install now.
    but on the NEW b2config file, it has:
    // ** MySQL settings **
    define(‘sitename_b2’); // The name of the database
    define(‘sitename_b2’); // Your MySQL username
    define(‘password’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    // If you’ve finished up to here you should be able to install now.
    Ok. So. My question is (and please remember, I Know Nothing About mysql) should I have changed where it says :
    define(
    to the:
    $dbname =
    could that be why I’m having trouble:
    Warning: Wrong parameter count for define() in /home/site/public_html/b2config.php on line 24
    Warning: Wrong parameter count for define() in /home/site/public_html/b2config.php on line 25
    Warning: Wrong parameter count for define() in /home/site/public_html/b2config.php on line 26
    SQL/DB Error —
    Since all the lines (24, 25, 26) are in connection with the define/$dbname ?
    Thanks for any info!
    w

Viewing 1 replies (of 1 total)
  • never mind 🙂 I figured it out. it’s
    define(‘DB_NAME’,’sitename_b2′);
    I’m not suppose to take out the ‘DB_NAME’ part 🙂
    Thanks anyway folks 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘database and config file question from newbie’ is closed to new replies.
Skip to toolbar