Zend Framework中通过ssl连接mysql服务器
来自
application.ini
的单个数据库连接(资源配置):resources.db.adapter = "pdo_mysql" resources.db.params.host = "mysql1" resources.db.params.username = "dbuser" resources.db.params.password = "dbpass" resources.db.params.dbname = "数据库名称" ;resources.db.???
来自
application.ini
的多个数据库连接(资源配置)代码>:resources.multidb.mysql1.adapter = "pdo_mysql" resources.multidb.mysql1.host = "mysql1" resources.multidb.mysql1.username = "dbuser" resources.multidb.mysql1.password = "dbpass" resources.multidb.mysql1.dbname = "数据库名称" ;resources.multidb.mysql1.???
Single DB connection (resource configuration) from
application.ini
:resources.db.adapter = "pdo_mysql" resources.db.params.host = "mysql1" resources.db.params.username = "dbuser" resources.db.params.password = "dbpass" resources.db.params.dbname = "dbname" ;resources.db.???
Multiple DB connection (resource configuration) from
application.ini
:resources.multidb.mysql1.adapter = "pdo_mysql" resources.multidb.mysql1.host = "mysql1" resources.multidb.mysql1.username = "dbuser" resources.multidb.mysql1.password = "dbpass" resources.multidb.mysql1.dbname = "dbname" ;resources.multidb.mysql1.???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 Zend 目前不支持使用 SSL 连接到 MySQL。不过,Zend Issue Tracker ticket #6140 可能会对您有所帮助。
I don't believe connecting to MySQL with SSL is currently supported in Zend. However, Zend Issue Tracker ticket #6140 may be of help to you.