|
-
Jul 16th, 2006, 04:28 AM
#1
Thread Starter
Addicted Member
[RESOLVED] DB loggin access problem
Hi guys,
I am trying to set up a forum. I have set up the DB and FTP'd all the files to my web space.
I have accessed thje DB before, but I am using the configuration files this time as supplied by the 'off the shelf' forum software.
$DB = 'mysql'; Depending on your database module, could be 'mysql', 'postgresql' or 'mssql'. Keep 'mysql' for current version of miniBB.
$DBhost='localhost'; Host name for your SQL setup. Most likely 'localhost'.
$DBname='miniBB'; Your SQL database name that you have just created.
$DBusr='USERNAME'; Your SQL username.
$DBpwd='PASSWORD'; Your SQL password.
According to the help manual (the orange section above) is not clear (to me). My DB host specifies that the hostname '$DBhost='localhost';' is in fact $DBhost='mysql'; and the rest is pretty self explanatory, so if you could shed some light on the orange section I would be very grateful.
-
Jul 16th, 2006, 05:42 PM
#2
Re: DB loggin access problem
The following is all assumptions, which are based upon many database installations I have done... I'd be surprised if it's not accurate, but you never know!
The $DB line specifies which type of database you are using (the values are all DBMS's), whereas the $DBhost line specifies which computer the database is stored on ("localhost" means the same computer as the code etc), which in this case they happen to have called "mysql" (presumably to confuse people!).
-
Jul 18th, 2006, 11:46 PM
#3
Re: DB loggin access problem
miniBB, hmm, never heard of it.
As far as I know si is correct, the $DB variable is a string specifying the DBMS. Not a particularly efficient method, but nevertheless.
Is what you have there not working?
-
Jul 19th, 2006, 01:15 AM
#4
Thread Starter
Addicted Member
Re: DB loggin access problem
No I'm afraid its not working. It seemed pretty straight forward to me, but without any error messages, I'm not sure what to look for.
I'm no expert at DB's (or anything else for that matter, it's all common sense & logic really), but have accessed my DB before, but using my own PHP script.
I can't just change/omit the variable as its used thoughout the software, it may not even be that.
OK, I'm recheck the DBMS, although it's quite likely to also be 'mysql' (don't you think), failing that it's probably best to delete/reinstall, and try again.
Appreciate your help gents, thx. If you think of anything else..........
Here's where I downloaded it from, if you are curious.
minibb
-
Jul 19th, 2006, 01:55 PM
#5
Thread Starter
Addicted Member
Re: DB loggin access problem
OK, sorted it......
$DB was 'mysql' as well. There were a few other minor problems as well but I used a method whereby, I added sections of HTML text in the page to see what was happening. The minor prob's were missing apostrophies from the occasional variable texts (i.e. $DBname='miniBB'; )
Thanks again for your input.
Last edited by GettinBetter; Jul 19th, 2006 at 01:59 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|