silenceeeee
V2EX  ›  PHP

PDO 连接 MySQL 问题求助!

  •  
  •   silenceeeee · Oct 13, 2017 · 2236 views
    This topic created in 3159 days ago, the information mentioned may be changed or developed.

    PHP 用 PDO 连接 MySQL:

    public PDO::__construct ( string $dsn [, string $username [, string $passwd [, array $options ]]] )
    

    最后一个参数 $options 官方文档说明如下:

    options:
    A key=>value array of driver-specific connection options.
    

    只作了简单的说明,请问哪里可以找到具体说明呢?

    PHP 手册链接: http://php.net/manual/en/pdo.construct.php

    2 replies    2017-10-13 18:00:00 +08:00
    cxbig
        1
    cxbig  
       Oct 13, 2017
    看具体的数据库选项:
    http://php.net/manual/en/ref.pdo-mysql.php
    silenceeeee
        2
    silenceeeee  
    OP
       Oct 13, 2017
    @cxbig 明白了,谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3752 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 04:34 · PVG 12:34 · LAX 21:34 · JFK 00:34
    ♥ Do have faith in what you're doing.