FRIHOST • FORUMS • SEARCH • FAQ • TOS • BLOGS • COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
script backup database
simple php problem, please help...
Installing a SMF based forum
phpBB2 : NEED HELP
can't access local mysqlserver. help plz!
Can΄t connect to my database with php-nuke
Problem connecting to MySQL database with PHP [RESOLVED]
Looking to make an online database using php and mysql
Database connections failes after new month
PHPBB3 HOW DO I ENTER THINGS IN TO THE DATABASE SETTINGS
Database for php
how to connect database through php
Please can anyone help with a php script error/problem?
What to learn first?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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