[eluser]koringa[/eluser]
Hello Guys,
I use MacOS and trying to connect my project to the MySQL database using the Code Iginiter. I can connect from the command line or any others program, for example Sequel Pro for Mysql Database Administration, that is, my database works and is running normally.
In my autoload.php I set point to autoload database.
Code:
$autoload['libraries'] = array("database","session");
Below is my database.php
Code:
$active_group = "default";
$active_record = TRUE;
$db['default'][ 'hostname'] = "localhost";
$db['default'][ 'username'] = "root";
$db['default'][ 'password'] = "****";
$db['default'][ 'database'] = "sitesp";
$db['default'][ 'dbdriver'] = "mysql";
$db['default'][ 'dbprefix'] = "";
$db['default'][ 'pconnect'] = TRUE;
$db['default'][ 'db_debug'] = TRUE;
$db['default'][ 'cache_on'] = FALSE;
$db['default'][ 'cached'] = "";
$db['default'][ 'CHAR_SET'] = "utf8";
$db['default'][ 'dbcollat'] = "utf8_general_ci";
The database "sitesp" was created, of course.
Just get the message:
A Database Error Occurred
Unable to select the specified database: sitesp
If anyone has been there, will help a lot.
Thank you and anything I can, post here too.
[]
Thanks