Info
- 4 posts
- 4 voices
- Started 5 years ago by n22
- Latest reply from nearlyalaugh
- This topic is not a support question
help~~ config.php~~~
-
- Posted 5 years ago #
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"
----------------------------------Is there anybody who can edit the config.php for me???? (u can fill the model below)
----------------------------------------------------------------------------------------------------
<?php// ** MySQL settings ** //
define('BBDB_NAME', '??????????'); // The name of the database
define('BBDB_USER', '?????????'); // Your MySQL username
define('BBDB_PASSWORD', '???????'); // ...and password
define('BBDB_HOST', '????????'); // 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 , 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 = '??????????????'; // Example: ''
// There should be both a leading and trailing slash here. '/' is fine if the site is in root.
$bb->path = '?????????'; // 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';// Set to true if you want pretty permalinks.
$bb->mod_rewrite = false;-----------------------------------------------------------
here is all the information that i know:
database host : 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.comNameserver 1: ns1.awardspace.com
Nameserver 2: ns2.awardspace.com
Nameserver 3: ns3.awardspace.com
Nameserver 4: ns4.awardspace.comTHANK YOU A LOT!!!!!!!!!!!!!!!
-
- Posted 5 years ago #
Have you tried to connect the database with another script, using the same database/username/password?
-
- Posted 5 years ago #
Dear Potter_Sys,
I am having the same problem ("Cannot select DB."). On the same system, I have written php pages that successfully accessed that same mysql database. To give some perspective, I had no problem installing phpBB bulletin boards that use a php/mysql interface. I am just wondering what is going on here.
Could anyone help n22 and me solve this issue? Thank you in advance.
-
- Posted 5 years ago #
My web host has recently updated to MySQL 5, which I'm not used to. I was in the same boat as some folks above--with a "Cannot select DB." error--until I changed a few things around. With my host at least, one must enable remote connections for a MySQL user (at least i think so!). Also, instead of 'localhost' I had to put 'localhost:/tmp/mysql5.sock' in the config file, something to do with a socket. All I know, though, is that I got past the bug by doing that. One other thought is that many hosts add your username to the dbname, a fact that evaded me for a while. The database would be, for instance, username_bbpress. Hope these suggestions help; I know what tech frustrations like these are like. Carefully reading the MySQL control panel is what helped me.
Luck!
-
You must log in to post.