Connect to mysql server through ssl in Zend Framew

2019-08-15 22:22发布

问题:

  1. 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.???
  2. 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.???

回答1:

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.