上一篇
📢 最新动态 (2025年7月)
MySQL 8.0.35社区版用户近期频繁反馈LDAP认证问题,尤其在集群环境中出现ER_LDAP_AUTH_POOL_REINITIALIZING
错误,官方已确认该问题与连接池初始化冲突相关,预计下个补丁版本修复。
当MySQL通过LDAP插件进行用户认证时,日志中突然出现以下报错:
ERROR 11752 (HY000): ER_LDAP_AUTH_POOL_REINITIALIZING LDAP connection pool is reinitializing, please retry.
此时新连接可能被拒绝,已建立的连接不受影响。
authentication_ldap_simple_*
或authentication_ldap_sasl_*
参数值过小 -- 查看当前LDAP连接池配置(需管理员权限) SHOW VARIABLES LIKE 'authentication_ldap%pool%'; -- 调大连接池大小(示例值,根据实际调整) SET GLOBAL authentication_ldap_simple_pool_size=20; SET GLOBAL authentication_ldap_sasl_pool_size=20;
-- 单位:秒(默认通常为300) SET GLOBAL authentication_ldap_simple_connect_timeout=600; SET GLOBAL authentication_ldap_sasl_connect_timeout=600;
UNINSTALL PLUGIN authentication_ldap_simple; INSTALL PLUGIN authentication_ldap_simple SONAME 'authentication_ldap.so';
如果无法直接操作数据库服务器:
通过代理重试:
connectionRetryAttempts
参数 // Spring Boot示例 spring.datasource.hikari.connection-timeout=30000 spring.datasource.hikari.initialization-fail-timeout=60000
降级策略:
ALTER USER 'app_user'@'%' IDENTIFIED WITH mysql_native_password BY 'temp_password';
ldap://your-server:389
的端口检测 # my.cnf 建议配置 [mysqld] authentication_ldap_simple_pool_size=15 authentication_ldap_simple_connect_timeout=500
如果问题反复出现,考虑:
遇到复杂情况时,建议收集以下信息提交官方支持:
SHOW STATUS LIKE 'Ldap%'
输出 🎯 总结
这个报错本质是LDAP资源池的"保护机制",多数情况下通过调整参数即可解决,记得修改配置后执行FLUSH PRIVILEGES
哦!
本文由 钦碧春 于2025-07-31发表在【云服务器提供商】,文中图片由(钦碧春)上传,本平台仅提供信息存储服务;作者观点、意见不代表本站立场,如有侵权,请联系我们删除;若有图片侵权,请您准备原始证明材料和公证书后联系我方删除!
本文链接:https://vps.7tqx.com/wenda/495397.html
发表评论