mysql pam插件错误

标签 mysql linux authentication pam

我正在尝试安装 mysql pam 插件以将其用于用户身份验证。

我尝试了以下列出的 PAM Pluggable Authentication .但是,我无法安装该插件。

1-在my.cnf中添加以下行并重启mysql服务

[mysqld]
plugin-load=authentication_pam.so

2- 在 mysql 命令行中以 root 用户身份运行以下语句。

INSTALL PLUGIN authentication_pam SONAME 'authentication_pam.so';

输出:

ERROR 1126 (HY000): Can't open shared library '/usr/lib/mysql/plugin/authentication_pam.so' (errno: 2 /usr/lib/mysql/plugin/authentication_pam.so: cannot open shared object file: No such file or directory)

感谢任何帮助。

最佳答案

根据 MySQL Documentation

MySQL Enterprise Edition supports an authentication method that enables MySQL Server to use PAM (Pluggable Authentication Modules) to authenticate MySQL users. PAM enables a system to use a standard interface to access various kinds of authentication methods, such as Unix passwords or an LDAP directory.

在企业版中,您可以通过将其添加到配置文件并重新启动服务来启用它。

[mysqld]
plugin-load-add=authentication_pam.so

或者通过

在运行时注册
INSTALL PLUGIN authentication_pam SONAME 'authentication_pam.so';

MySQL Community Edition 没有 PAM 功能。

关于mysql pam插件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45591647/

相关文章:

mysql - 我可以通过将一个大表拆分成许多小表来优化我的数据库吗?

linux - 在 Tegra TK1 上使用 malloc() 与 cudaHostAlloc() 分配的数据的 CPU 内存访问延迟

linux - 为什么我不能处理 NMI?

java - java oauth 2.0 插件编译失败的 Google+ 快速入门

mysql - 如何使 LEFT JOIN 与 MySQL 中的分组/计数一起使用?

使用之间的Mysql查询问题

c# - 尝试从非常大的数据中从mysql中的多个相关表检索数据

c++ - 在实时 Fedora 上编译 C++ 程序的命令

Java(RMI)服务器到服务器的身份验证方法?

c# - 发送 HTTP header 后,Windows Auth Server 无法设置状态