This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Configuration FIle
Started 16 years ago by chemenephillips | 8 posts |
-
Hello,
I am setting up a database and form for my very first time. Please forgive me if I am about to ask a stupid question but when I am following the directions for the configuration file it says (for example) DB_NAME. Do I actually type that and then my information or do I just type my information? For example: electric_raffle if raffle is my database name.
Thank you, I searched for a previous post for this but didn't see anything and I want to make sure I do it right the first time.
Posted 16 years ago # -
Also, does the admin username and password have to match that on my hosting server for my database or can this be any new username and password?
Posted 16 years ago # -
It should look like this:
define('DB_NAME', 'your_db_name_here')
Same goes for the other 4 settings (user, pass and host). So if raffle is your db name, then it should be:
`define('DB_NAME', 'raffle')
Posted 16 years ago # -
On the username/password for the admin side, it can be whatever you want it to be. I wouldn't make it the same as other passwords... Someone with read access to this file can easily get access.
Posted 16 years ago # -
Great, thanks. One last question, not sure if you can answer.
Would what I put in for the host be my cpanal website or would it just be the standard website for my host?
Posted 16 years ago # -
It's generally localhost, unless your host/admins have set a specific host for your db's. Try "localhost", if it fails go through your cpanel configs and see what's set there....
Posted 16 years ago # -
Just to confirm. If my host is network solutions let's say do I just put in `define('DB_HOST, 'network solutions')or do I have to put in www.networksolutions.com or just network solutions .com?
Posted 16 years ago # -
Nevermind, I think I've got it.
Posted 16 years ago #
Reply
You must log in to post.