Install - Freeradius can't connect to MySQL

N White nwtech at tele-net.net
Wed Jun 7 21:45:23 CEST 2006


Cliff Hayes wrote:
> Hello,
>
> Warning - newbie installing Freeradius.
>
> I get this in the radius.log even though the sql.conf has the correct
> host/user/password (and I can access MySQL from the command line using the
> same login criteria):
>
> Wed Jun  7 14:01:52 2006 : Info: rlm_sql_mysql: Starting connect to MySQL
> server for #0
> Wed Jun  7 14:01:52 2006 : Error: rlm_sql_mysql: Couldn't connect socket to
> MySQL server root at localhost:radius
> Wed Jun  7 14:01:52 2006 : Error: rlm_sql_mysql: Mysql error 'Can't connect
> to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)'
> Wed Jun  7 14:01:52 2006 : Error: rlm_sql (sql): Failed to connect DB handle
> #0
> Wed Jun  7 14:01:52 2006 : Info: Ready to process requests.
>
> Thanks,
>
> Cliff
>
> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
>   
Just to clarify. It looks as though MySQL is running on the localhost 
(same machine as FreeRADIUS) and you are logging into it with username 
'root'. The FreeRADIUS database is named 'radius'. This is correct?

-- 
---------------------------
| Nick White              |
| nwtech at tele-net.net     |
---------------------------




More information about the Freeradius-Users mailing list