问题描述
我对Zend-Framework还是很陌生,但是我设法在PC上建立了一个简单的站点,其中包含2个页面,这些页面显示本地数据库中表的内容.问题是,当我在服务器上安装站点时,该站点无法正常工作,因为在生产服务器中,必须使用SSL建立与本地mysql服务器的连接.
I'm pretty new to Zend-Framework, but I managed to build a simple site in my PC with 2 pages that show the content of a table in a local database.The problem is that when I installed the site on the server, it didn't work because in the production server the connection to the local mysql server must be established using SSL.
我搜索了需要添加到 application.ini 的密钥以启用ssl连接,但是在ZendFramework文档中找不到任何密钥.这是我的 application.ini
I searched for the keys that I need to add to the application.ini to enable the ssl connection but I couldn't find any in the ZendFramework documentation.Here is the code of my application.ini
resources.multidb.config.adapter = "pdo_mysql"
resources.multidb.config.host = "localhost"
resources.multidb.config.username = "Administrator"
resources.multidb.config.password = "xxx"
resources.multidb.config.dbname = "config"
resources.multidb.config.default = true
您知道ZendFramework是否支持与mysql服务器的ssl连接以及如何配置它吗?如果没有:有什么解决方法吗?
do you know if the ZendFramework supports ssl connection to mysql server and how to configure it? if no: is there some workaround?
感谢您的帮助
推荐答案
我认为当前不支持它. 卡尔·韦尔奇(Carl Welch)在机票#6140 (请参见library.diff
附件),但是,更改似乎尚未在主干中
I don't think it's currently supported. Carl Welch patched it in ticket #6140 (see the library.diff
attachment), however, changes don't seem to be in the trunk yet.
我建议对该问题进行投票(您必须先登录).
I suggest to vote for the issue (you have to log in first).
这篇关于与Zend-Framework的MySql SSL连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!