LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1198|回复: 2

freeradius+mysql 的验证问题

[复制链接]
发表于 2008-11-15 12:27:06 | 显示全部楼层 |阅读模式
我在做freeradius+mysql的验证时启动radius -x后出现下列错误提示:请问该如何解决呢?

环境如下:REDHAT AS 5,mysql-5.0.67-linux-i686,freeradius-1.1.7

错误提示如下:
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to root@localhost:/radius
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql_mysql: Couldn't connect socket to MySQL server root@localhost:radius
rlm_sql_mysql: Mysql error 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
rlm_sql (sql): Failed to connect DB handle #0
rlm_sql (sql): starting 1
rlm_sql (sql): starting 2
rlm_sql (sql): starting 3
rlm_sql (sql): starting 4
rlm_sql (sql): Failed to connect to any SQL server.
 楼主| 发表于 2008-11-15 18:42:57 | 显示全部楼层
有哪位知道原因吗?
回复 支持 反对

使用道具 举报

发表于 2009-2-27 09:40:19 | 显示全部楼层
从提示上看是没有连接到mysql数据库,检查一下是否正确连接到mysql数据库,此外检查rlm_sql_mysql模块是否编译成功
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表