Welcome Guest, Not a member yet? Register   Sign In
MySql Connection Fail [resolved]
#1

[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


Messages In This Thread
MySql Connection Fail [resolved] - by El Forum - 09-30-2009, 06:23 AM
MySql Connection Fail [resolved] - by El Forum - 09-30-2009, 06:45 AM
MySql Connection Fail [resolved] - by El Forum - 09-30-2009, 09:07 AM
MySql Connection Fail [resolved] - by El Forum - 09-30-2009, 10:45 AM
MySql Connection Fail [resolved] - by El Forum - 09-30-2009, 07:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB