0

I really got confused of how to remote my server database from codeigniter project on local server. It is look like i have setup everything correctly.

$db['default']['hostname'] = 'xxx.xx.xxx.xx';
$db['default']['username'] = 'username';
$db['default']['password'] = 'password';
$db['default']['database'] = 'db';

But from that code i always get the same error on the browser,

Unable to connect to your database server using the provided settings.

Filename: core/Loader.php

I have setup the configuration in database.php.

Can someone please help me with this problem? I really need to remote it from local

lloistborn
  • 353
  • 2
  • 7
  • 23
  • 1
    Your DB server may be configured not to allow any connections except from `localhost`, see if you need to add your IP to its access list. – DeDee Aug 29 '15 at 15:59
  • I see, i have setup an access host with my computer ip xx.xx.xxx.xx, but i still cant access my database server. Do you have another sugestion? @DeDee – lloistborn Aug 29 '15 at 16:04
  • try setting `$db['default']['pconnect'] = true;` – viral Aug 29 '15 at 16:15
  • There are many potential solutions to your problem at http://stackoverflow.com/questions/7254049/codeigniter-unable-to-connect-to-your-database-server-using-the-provided-settin – DeDee Aug 29 '15 at 16:24

0 Answers0