I try to create a table with codeigniter in mysql DB with following code:
$posts_fields=array(
'id'=>array('type' => 'INT','constraint' => 5,'unsigned' => TRUE),
'title'=>array('type' =>'VARCHAR','constraint' => 100),
'content'=>array('type'=>'text'),
'create_time'=>array('type'=>'INT','constraint'=>12));
$this->dbforge->add_field($posts_fields);
$this->dbforge->create_table('posts');
but anytime get error "NO DATABASE SELECTED".
how can I select a database to create tables in it?? (this database is not default database)