<br>Could it be an authentication problem? Maybe you didn't spell the user to connect to mysql correct?<br>I would also suggest that you enable extensive logging on the mysql side to see if there are any <br>requests. This is done usually in /etc/mysql/my.cnf
<br><br><br>Liran.<br><br><div><span class="gmail_quote">On 6/7/07, <b class="gmail_sendername">Andy Hughes</b> <<a href="mailto:andy@conet.co.nz">andy@conet.co.nz</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Freeradius Users,<br><br>I am having an issue with the rlm_sql_mysql driver on Centos 5.<br><br>When I run radius from the init.d/radiusd the server presents the following error in the radius logs.<br><br>--snip--<br><br>
Fri Jun  8 02:58:42 2007 : Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked<br>Fri Jun  8 02:58:42 2007 : Info: rlm_sql (sql): Attempting to connect to radius@localhost:3306/radius<br>Fri Jun  8 02:58:42 2007 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0
<br>Fri Jun  8 02:58:42 2007 : Error: rlm_sql_mysql: Couldn't connect socket to MySQL server radius@localhost:radius<br>Fri Jun  8 02:58:42 2007 : Error: rlm_sql_mysql: Mysql error 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)'
<br>Fri Jun  8 02:58:42 2007 : Error: rlm_sql (sql): Failed to connect DB handle #0<br><br>-- snip --<br><br>-- snip --<br>netstat -a<br><br>unix  3      [ ]         STREAM     CONNECTED     120857 /var/lib/mysql/mysql.sock
<br>tcp           0            0 *:mysql              *:*                   LISTEN<br><br>-- snip --<br><br>I have tried running the server as root and I still receive the same error.<br><br>However,<br><br>When I run the server in extended debug mode (as root) the server starts fine and will serve authentication from the MySQL database quite happily.
<br><br>--snip--<br><br>rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked<br>rlm_sql (sql): Attempting to connect to radius@localhost:3306/radius<br>rlm_sql (sql): starting 0<br>rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
<br>rlm_sql_mysql: Starting connect to MySQL server for #0<br>rlm_sql (sql): Connected new DB handle, #0<br>rlm_sql (sql): starting 1<br>rlm_sql (sql): Attempting to connect rlm_sql_mysql #1<br>rlm_sql_mysql: Starting connect to MySQL server for #1
<br>rlm_sql (sql): Connected new DB handle, #1<br>rlm_sql (sql): starting 2<br>rlm_sql (sql): Attempting to connect rlm_sql_mysql #2<br>rlm_sql_mysql: Starting connect to MySQL server for #2<br>rlm_sql (sql): Connected new DB handle, #2
<br>rlm_sql (sql): starting 3<br>rlm_sql (sql): Attempting to connect rlm_sql_mysql #3<br>rlm_sql_mysql: Starting connect to MySQL server for #3<br>rlm_sql (sql): Connected new DB handle, #3<br>rlm_sql (sql): starting 4<br>
rlm_sql (sql): Attempting to connect rlm_sql_mysql #4<br>rlm_sql_mysql: Starting connect to MySQL server for #4<br>rlm_sql (sql): Connected new DB handle, #4<br>Module: Instantiated sql (sql)<br><br>--snip--<br><br>I have also tried various variations of commands in 
sql.conf to configure the sql port. Can anyone tell me what the appropriate configuration command is?<br><br>Can anyone shine any light on what might be the problem here?<br><br>Regards,<br><br>Andy Hughes<br><br><br>-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a><br></blockquote></div><br>