FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

about database in settings.php

 


Guelila
What do I have to put here?

//database option
$db_host = "YOU MUST EDIT HERE"; //database host, usually localhost
$db_name = "YOU MUST EDIT HERE"; //database name
$db_user = "YOU MUST EDIT HERE"; //database username
$db_pass = "YOU MUST EDIT HERE"; //database password

please help.
and what exactly is my database? do I have to make one?
what does it mean?? -
Quote:
usually localhost


Help please, thanks
Bondings
Guelila wrote:
What do I have to put here?

//database option
$db_host = "YOU MUST EDIT HERE"; //database host, usually localhost
$db_name = "YOU MUST EDIT HERE"; //database name
$db_user = "YOU MUST EDIT HERE"; //database username
$db_pass = "YOU MUST EDIT HERE"; //database password

please help.
and what exactly is my database? do I have to make one?
what does it mean?? -
Quote:
usually localhost


Help please, thanks

$db_host = "localhost";
$db_name = "guelila_<the_name_of_your_database>";
$db_user = "<the_name_of_a_user_of_that_database>";
$db_pass = "<the_password_of_that_user>";

You can create users and their passwords and add them to the database in cpanel, mysql. Replace everything between <> with your value.
nolit
Bondings wrote:

$db_host = "localhost";
$db_name = "guelila_<the_name_of_your_database>";
$db_user = "<the_name_of_a_user_of_that_database>";
$db_pass = "<the_password_of_that_user>";

You can create users and their passwords and add them to the database in cpanel, mysql. Replace everything between <> with your value.


I think you should replace including the <> with your values.
Just a correction.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.