Welcome Guest, Not a member yet? Register   Sign In
Using Database
#1

[eluser]hema[/eluser]
Hi All,

I am using database from my local machine and it is working fine. But how can i able to access the database in my other lan machine. I am give IP address of the other machine and also authentication details. But it is give me database connection error.
#2

[eluser]psychoder[/eluser]
web server... wamp or xampp and put it online...
#3

[eluser]hema[/eluser]
I am using xampp webserver and i am working online

these are my database settings

$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = '192.***.**.***';
$db['default']['username'] = '******';
$db['default']['password'] = '*******';
$db['default']['database'] = '*****';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
#4

[eluser]psychoder[/eluser]
maybe in your config base_url

Code:
$config['base_url']    = 'http://192.*********/codeigniter_app/';
#5

[eluser]hema[/eluser]
In my config it is like this
$config['base_url'] = 'http://localhost/codeigniter_app/
#6

[eluser]psychoder[/eluser]
use ip address(of server) instead of localhost...
#7

[eluser]hema[/eluser]
No my requirement is code should be in my system and db should be another system. Even, if i give my system ip address, it is giving me error




Theme © iAndrew 2016 - Forum software by © MyBB