MySQL++ Linux 上的 SSL 支持
我正在尝试让 MySQL++ 在具有 SSL 支持的 Debian 6 上正常工作。我已经在 Windows 7 上测试了所有内容,效果非常好。一切都已加密。不过,我在将其移植到 Debian 时遇到了一些麻烦。
这是我的错误:
<代码> 抛出 'mysqlpp::BadOption' 实例后调用终止 What():数据库驱动程序 v5.1.49 不支持选项
这是我设置证书文件的调用:
connection->set_option(new mysqlpp::SslOption("/root/certs/client-key.pem", "/root/certs/client- cert.pem", "/root/certs/ca-cert.pem", "/root/certs", "DHE-RSA-AES256-SHA"));
我注意到在配置时MySQL++ 它在 libmysqlclient 中查找 mysql_ssl_set()。它没有找到该功能。
检查 -l 中的 mysql_ssl_set...否
I am attempting to get MySQL++ to work correctly on Debian 6 with SSL support. I have tested everything on Windows 7 and it works great. Everything is encrypted. I am having a little bit of trouble porting it to Debian though.
This is my error:
terminate called after throwing an instance of 'mysqlpp::BadOption'
what(): Option not supported by database driver v5.1.49
This is my call for setting the certificate files:
connection->set_option(new mysqlpp::SslOption("/root/certs/client-key.pem", "/root/certs/client-cert.pem", "/root/certs/ca-cert.pem", "/root/certs", "DHE-RSA-AES256-SHA"));
I have noticed that when configuring MySQL++ it looks for mysql_ssl_set() in libmysqlclient. It does not find that function.
checking for mysql_ssl_set in -l... no
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该错误已在今天发布的 MySQL++ 3.2.0 中修复。
在旧版本中,
mysql_ssl_set()
的测试存在错误。如果您无法使用当前版本,但可以修补您版本的源代码,这将修复它:然后您将需要重新引导源代码树并重建。
This bug is fixed in MySQL++ 3.2.0, released today.
In older versions, there's a bug in the test for
mysql_ssl_set()
. If you cannot use the current version but can patch your version's source code, this will fix it:You will then need to re-bootstrap the source tree, and rebuild.