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