Welcome Guest, Not a member yet? Register   Sign In
codeigniter 2.1.2 database not loading
#1

[eluser]dinisptc[/eluser]
this is the database.php

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

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = 'password';
$db['default']['database'] = 'sitedb';
$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;


i am using mysql workbench , but mysql its working fine


this is the autoload
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your application/libraries folder.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/

$autoload['libraries'] = array('database');



when i run the website with the browser nothing happens
doesnt show any error , and its not showing the codeigniter welcome,shows a blank page

#2

[eluser]keithics[/eluser]
you probably have an error. try setting you php settings to show all errors or look at the php log file.
#3

[eluser]dinisptc[/eluser]

/var/log/apache2

[Mon Oct 01 13:17:59 2012] [notice] caught SIGTERM, shutting down
[Mon Oct 01 13:18:00 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.4 with Suhosin-Patch configured -- resuming normal operations


i have this error when i run the page with the database library




Theme © iAndrew 2016 - Forum software by © MyBB