Welcome Guest, Not a member yet? Register   Sign In
Database connection help
#1

[eluser]Max-B[/eluser]
Hello.
I'm a new CI user.
I want to use it in a couple of project I have to do in this day.

A problem....

I HAVE TO USE FIREBIRD for this.

I try the driver found in the forum and ODBC connection without success.

Can someone help me?


ODBC Entry
DSN Name: Blog
Database C:\BLOG.FDB
Clien DLL C:\Programmi\Firebird\Firebird_2_0\bin\fbclient.dll
User: SYSDBA
Password: masterkey

Connection TEST Succesfull


This is my database.php config...

$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "";
$db['default']['password'] = "";
$db['default']['database'] = "Blog";
$db['default']['dbdriver'] = "odbc";
$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";

What's wrong?


Thanks all in advance.
#2

[eluser]TheFuzzy0ne[/eluser]
What's the problem? Are you getting some kind of error? Have you checked your log file?
#3

[eluser]Max-B[/eluser]
The error:

An Error Was Encountered
Unable to connect to your database server using the provided settings...

In my try with the ibase driver I go over this but give me problem with the autoload....
#4

[eluser]fMertins[/eluser]
Hi, instead of
$db[‘default’][‘hostname’] = “localhost”;

try to use:
$db[‘default’][‘hostname’] = “Blog”;

And I'm afraid you have to inform user + password files...




Theme © iAndrew 2016 - Forum software by © MyBB