bbPress

Simple, Fast, Elegant

bbPress support forums » Installation

help!!! install problem!!

(8 posts)
  • Started 1 year ago by n22
  • Latest reply from satellio
  • This topic is not a support question
  1. n22
    Member

    hi everyone!

    i get a problem while installation ----> "can not select DB" what is this????

    -----------------------------

    here is what i did:

    1) i download the bbpress
    2) i edit " config-sample.php" like this:

    // ** MySQL settings ** //
    define('BBDB_NAME', 'n22_n22'); // The name of the database
    define('BBDB_USER', 'n22'); // Your MySQL username
    define('BBDB_PASSWORD', '12345678'); // ...and password
    define('BBDB_HOST', 'localhost'); // 99% chance you won't need to change this value

    // Change the prefix if you want to have multiple forums in a single database.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://n22.awardspace.com/bbpress/ , the examples would be correct.
    // Adjust the domain and path to suit your actual URL.
    // Just the domain name; no directories or path. There should be no trailing slash here.
    $bb->domain = 'http://n22.awardspace.com/'; // Example: 'http://n22.awardspace.com'
    // There should be both a leading and trailing slash here. '/' is fine if the site is in root.
    $bb->path = '/bbpress/'; // Example: '/forums/'

    // What are you going to call me?
    $bb->name = 'dig montreal';

    // This must be set before running the install script.
    $bb->admin_email = 'haiyuezhang@hotmail.com';

    i donno if its all right..

    3) i upload the bbpress folder to my webspace
    4) i change the name of "config-sample.php" to "config.php"
    5) i open in IE the http://n22.awardspace.com/bbpress/bb-admin/install.php
    6) "cannot select DB" (why??????)

    HELP~!!!!!!!!!!!!!!!!!!!!!!!!!!!me

    THANKS A LOT

    Posted 1 year ago #
  2. Please make sure your MySQL username is correct. If i not mistake, awardspace put ur login name next to ur db username. Eg: user_db

    Posted 1 year ago #
  3. n22
    Member

    its that a url i should write? ex: db.awardspace.com

    thank you for the quick answer

    Posted 1 year ago #
  4. n22
    Member

    so it is a url that i should write? ex: db.awardspace.com

    Posted 1 year ago #
  5. I think this should be ur db host "db1.awardspace.com" Hope this will help :)

    Edit: maybe u can find ur db hostname inside "Database Manager"

    Posted 1 year ago #
  6. n22
    Member

    still not working.....ahh!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    when i load the install.php from http://n22.awardspace.com/bbpress/bb-admin/install.php,
    it says : "can not select DB"
    ----------------------------------
    Atsutane, thank you a lot. But i still cant find out the problem.
    Could you please edit the config.php for me? here is all my information:

    database host URL: http://db2.awardspace.com
    database user : n22_n22
    database name: n22_n22
    database password: 123456 (i will change it after)

    my website URL: http://n22.awardspace.com
    my forums folder URL: http://n22.awardspace.com/bbpress/
    my email: haiyuezhang@hotmail.com

    you can send me the config.php to my email, or just edit here in this forum just like what i did in my first topic.
    THANKS A LOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Posted 1 year ago #
  7. You should contact your host and ask them what the name of your database is.

    Posted 1 year ago #
  8. Hopefully this will help some people...

    I have bbPress installed on a remote server at a web hosting company. When running bb-admin/install.php, I'd get the dreaded error message "Cannot select DB" again and again.

    Looking up the administration panels at my host's in despair, I eventually stumbled upon the following piece of information, written in small print:
    "To access your database, enter mysql.your_domain.top_level_domain as your database host."

    So according to that, line #7 in config.php, instead of:
    define('BBDB_HOST', 'localhost'); // 99% chance you won't need to change this value
    should read:
    define('BBDB_HOST', 'mysql.your_domain.top_level_domain'); // 99% chance you'll have wasted two hours and a half before figuring this out

    And that was it, it worked! Who would have guessed a bug could be caused by a slightly over-confident comment on line #7? :-)

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.