Welcome Guest, Not a member yet? Register   Sign In
How to connect database using one not in localhost
#5

[eluser]Miftah Zein[/eluser]
[quote author="Atharva" date="1294325826"]Can you post your database.php db connection code here?[/quote]

it look like this

Code:
File: database.php

$active_group = "local";
$active_record = TRUE;

$db['server']['hostname'] = "localhost";
$db['server']['username'] = "grpuc621_dbroot";
$db['server']['password'] = "[email protected]";
$db['server']['database'] = "grpuc621_landscape";

$db['local']['hostname'] = "localhost";
$db['local']['username'] = "root";
$db['local']['password'] = "";
$db['local']['database'] = "landscape";

$db["$active_group"]['dbdriver'] = "mysql";
$db["$active_group"]['dbprefix'] = "";
$db["$active_group"]['pconnect'] = TRUE;
$db["$active_group"]['db_debug'] = TRUE;
$db["$active_group"]['cache_on'] = FALSE;
$db["$active_group"]['cachedir'] = "";
$db["$active_group"]['char_set'] = "utf8";
$db["$active_group"]['dbcollat'] = "utf8_general_ci";


Messages In This Thread
How to connect database using one not in localhost - by El Forum - 01-06-2011, 02:32 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 02:35 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 02:45 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 02:57 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 03:21 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 03:24 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 03:27 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 03:29 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 03:31 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 03:40 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 03:57 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 04:08 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 04:47 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 04:50 AM
How to connect database using one not in localhost - by El Forum - 01-06-2011, 07:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB