CodeIgniter Forums
Running the Database Library Locally without an Internet Connection - 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: Running the Database Library Locally without an Internet Connection (/showthread.php?tid=47437)



Running the Database Library Locally without an Internet Connection - El Forum - 12-08-2011

[eluser]Unknown[/eluser]
I'm trying to run an application that runs off a local db. It works fine when there is an internet connection. However, when I turn off wi-fi, I'll get the error...

Code:
A Database Error Occurred

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

Filename: core/Loader.php

Line Number: 268

Here is my database config...

Code:
$db['local']['hostname'] = 'localhost';
$db['local']['username'] = 'root';
$db['local']['password'] = 'PASSWORD HERE';
$db['local']['database'] = 'DATABASE HERE';
$db['local']['dbdriver'] = 'mysql';
$db['local']['dbprefix'] = '';
$db['local']['pconnect'] = TRUE;
$db['local']['db_debug'] = TRUE;
$db['local']['cache_on'] = FALSE;
$db['local']['cachedir'] = '';
$db['local']['char_set'] = 'utf8';
$db['local']['dbcollat'] = 'utf8_general_ci';
$db['local']['swap_pre'] = '';
$db['local']['autoinit'] = FALSE;
$db['local']['stricton'] = FALSE;

Any ideas?