Codeigniter - Installation script

1

I created an installer for my system it installs normal, but before the installation finishes the error occurs

Error Number: 1046

No database selected

CREATE TABLE IF NOT EXISTS 'auditoria' ( 'id' int(11) NOT NULL AUTO_INCREMENT, 
'usuario' varchar(45) NOT NULL, 
'data_hora' timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
'operacao' varchar(45) NOT NULL, 'query' text NOT NULL, 
'observacao' text NOT NULL, PRIMARY KEY ('id') ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Filename: C:\wamp\www\ehpcms\system\database\DB_driver.php

Line Number: 330

Follow my controller install.php

link

    
asked by anonymous 31.07.2014 / 00:13

1 answer

1

The error informs that the Driver did not find the DB. You need to change the DB in your application\config\database file.

Change the lines below:

$db['default']['username'] = '';
$db['default']['password'] = '';
$db['default']['database'] = '';
    
31.07.2014 / 00:27