[RADIATOR] Radiator SQL Access

Heikki Vatiainen hvn at archred.com
Mon Feb 1 05:54:29 CST 2010


On 02/01/2010 12:57 PM, Carlos Parada wrote:

> However, I'm facing the following problem "Could not connect to SQL database with DBI->connect" (see confs and logs).
> I have tried to use other functionalities with an SQL database, such as accounting, and the problem is the same.
> I have created a small perl script (see below) using the same access data and it works perfectly.
> I've tried to sniff some traffic using the tethereal application and nothing can be seen.
> Any tips?

A quick thing to check is to see if it works without the quotes " for
the DBSource parameter.

I have never used quotes and it works. What I am thinking is that quotes
may become part of the DBSource value which they should not be.

> Conf:
> <AddressAllocator SQL>
>         Identifier dhcp_sql
>         DBSource "dbi:Pg:dbname=aaa;host=10.112.25.65;port=5432"



-- 
Heikki Vatiainen, Arch Red Oy
+358 44 087 6547


More information about the radiator mailing list