On Tue, 2 Apr 2002, Jason M. Weber wrote:

> When I change the following line in accounting.php:
>
> $link = @da_sql_pconnect($config) or die...
>
> to
>
> $link = mysql_pconnect(localhost, <username>,<password>) or die...
>
> I can connect to the db and the accounting page works just fine. A problem
> with my config file? A problem with this "@da_sql_pconnect" function? (I
> can't seem to find it referenced at php.net so I'm assuming it's a function
> somewhere in the dialup-admin stuff but I can't find it. I'm just looking
> for some suggestions folks. Thanks.
>
> ~ Jason
>

da_sql_pconnect() is located in lib/sql/drivers/*/functions.php3
Anyway, check your admin.conf and especially your sql_* directives. They should
be something like:

sql_type: mysql
sql_server: localhost  <-- Your sql server here
sql_port: 3306
sql_username: dialup_admin  <--- Your sql user here
sql_password: XXXXXX        <--- Your sql password here


--
Kostas Kalevras         Network Operations Center
[EMAIL PROTECTED]      National Technical University of Athens, Greece
Work Phone:             +30 10 7721861
'Go back to the shadow' Gandalf


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to