I have installed FreeRADIUS and MySQL on the same machine.<br> "FreeRADIUS + MySQL" had worked well before Server IP changed. For some reason the server had to be carried to a new place and its IP must be changed.
<br> After the server IP changed, "FreeRADIUS + MySQL" does not work. <br> I have edited sql.conf and changed IP to the new correct IP . I also edited the table "user" in the database "mysql" and altered the Host field from the old IP to the new correct IP. However these mendings do not work. The following is part of the result to the command "radiusd -X":
<br> <span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql (sql): Attempting to connect to root@202.117.54.251:/radius</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql (sql): starting 0</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql_mysql: Starting connect to MySQL server for #0
</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql_mysql: Couldn't connect socket to MySQL server root@202.117.54.251
:radius</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql_mysql: Mysql error 'Access denied for user 'root'@'
<a href="http://202.117.54.251">202.117.54.251</a>' (using password: YES)'</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
rlm_sql (sql): Failed to connect DB handle #0</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql (sql): starting 1
</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql (sql): starting 2</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql (sql): starting 3</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
rlm_sql (sql): starting 4</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> rlm_sql (sql): Failed to connect to any SQL server.
</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> Module: Instantiated sql (sql)<br> <span style="color: rgb(51, 51, 51);">
I have not compile and install FreeRADIUS and just edited the related files. What should I do to make FreeRADIUS and MySQL work well again ? Thanks in advance.<br><br>Regards<br>Guoxian<br></span></span> <br>