reconnecting to mysql

Arran Cudbard-Bell a.cudbardb at
Tue Sep 17 19:47:43 CEST 2013

On 17 Sep 2013, at 18:22, Edgars Makņa <edgarz at> wrote:

> Hello,
> I just setup 2.2.0 from freebsd ports. In the testing environment it looks okey except this error:
> rlm_sql_mysql: MYSQL check_error: 2006, returning SQL_DOWN
> rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
> rlm_sql_mysql: Starting connect to MySQL server for #1
> rlm_sql (sql): Connected new DB handle, #1
> It appears on every second authorization attempt. Ping to mysql server runs fine, another db's works without any clue.
> Google didnt give me any answers about this problem.

Looks like MySQL (or something else) is closing the connection after one query?  Why don't you trace it and find out.


Arran Cudbard-Bell <a.cudbardb at>
FreeRADIUS Development Team

More information about the Freeradius-Users mailing list