![]() |
Using Database - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Using Database (/showthread.php?tid=43932) |
Using Database - El Forum - 07-28-2011 [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. Using Database - El Forum - 07-28-2011 [eluser]psychoder[/eluser] web server... wamp or xampp and put it online... Using Database - El Forum - 07-28-2011 [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; Using Database - El Forum - 07-28-2011 [eluser]psychoder[/eluser] maybe in your config base_url Code: $config['base_url'] = 'http://192.*********/codeigniter_app/'; Using Database - El Forum - 07-28-2011 [eluser]hema[/eluser] In my config it is like this $config['base_url'] = 'http://localhost/codeigniter_app/ Using Database - El Forum - 07-28-2011 [eluser]psychoder[/eluser] use ip address(of server) instead of localhost... Using Database - El Forum - 07-28-2011 [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 |