CodeIgniter Forums

Full Version: Unable to connect to database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Hi,

Just downloaded CI and ran through the intro. I am evaluating
a few frameworks, and I like what I see.

Problem is, I can't connect to a MySQL database, so I must be missing
something, or just as likely, doing something rather stupid.

I have tried all three methods described in the manual - i.e., set
the values in database.php, use autoload; set values in database.php
explicitly load by passing TRUE as 3rd param to model class. And then
tried to load explicitly from both controller and model classes.

I've tried with dbdriver set to both mysql and odbc. The results of
all of these 8 attempts have been identical. Incidently, I get the
same result when I try to use the scaffold facility.

Anyway the result that is displayed in the browser is:

An error occurred while loading http://bigmax.ipc.com/CodeIgniter/index.php/trader:
Connection to host bigmax.ipc.com is broken.

This is on CI 1.6.1, RHEL8, MySQL 5.0.45, unixODBC 2.2.12 PHP 5.2.4, Apache 2.2.6

If sample code will help, I will send it in.

Thanks much

El Forum

[eluser]Unknown[/eluser]
I meant to post this in the code and dev forum, appologies.