About Zend Framework PHP's access to MySQL via SSL

Source: Internet
Author: User
Tags zend framework
About Zend Framework PHP's access to MySQL via SSL
Zend studio8.0
PHP 5.3.8
MySQL 5.1.58

Database access Configuration
Resources.db.adapter = Pdo_mysql
Resources.db.params.host = 192.168.1.12
Resources.db.params.username = root
Resources.db.params.password = 123456
Resources.db.params.dbname = TestDB

Database Configuration SSL Succeeded
The Navicat SSL mode provides access to the database.

Can you tell me how to configure in Zend to access the database?

------Solution--------------------
Configuring the database in Zend it seems like there's nothing you want him to do for you. What can he do for you?
------Solution--------------------
There are posts about connecting to MySQL via SSL.
Zend, it should be the same, the key is to let MySQL support SSL.
Reference:
Http://hi.baidu.com/freeners/blog/item/ab950513a5efe70c4a90a78c.html
------Solution--------------------
discuss

MySQL has supported SSL

Tip: The Navicat SSL mode can access the database.

The key now is that PHP scripts do not know how to write to connect to MySQL via SSL

------Solution--------------------
http://www.php.net/manual/en/function.mysql-connect.php#77000

http://php.net/manual/en/mysqli.ssl-set.php
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.