0

我对 MySQL 有疑问:

freeradius -X 给出以下命令:

Could not link driver rlm_sql_mysql: /usr/lib/freeradius/rlm_sql_mysql.so: cannot open shared object file: No such file or directory
Make sure it (and all its dependent libraries!) are in the search path of your system's ld
/etc/freeradius/3.0/mods-enabled/sql[18]: Instantiation failed for module "sql

" admin@ubuntu-de-01:/etc/freeradius/3.0/mods-available$ freeradius -v

radiusd: FreeRADIUS Version 3.0.16, for host x86_64-pc-linux-gnu, built on Apr 17 2019 at 12:59:55
FreeRADIUS Version 3.0.16
Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT

MySQL 数据库正在工作:

Database changed
mysql> show tables;
+------------------+
| Tables_in_radius |
+------------------+
| nas              |
| radacct          |
| radcheck         |
| radgroupcheck    |
| radgroupreply    |
| radpostauth      |
| radreply         |
| radusergroup     |
+------------------+
8 rows in set (0.00 sec)

mysql>

我还没有尝试安装 libmysqlclient 或 yum 或任何东西。这个问题在我重新安装 freeradius 后开始出现。

是否还需要以某种方式重新安装 mysql DB?

谢谢

4

1 回答 1

0

就我而言,在降级 MySQL 版本后,该libmysqlclient-dev库丢失了,所需要的只是安装它。

apt install libmysqlclient-dev

希望,这可以帮助某人。

于 2021-07-08T06:18:45.500 回答