V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
silenceeeee
V2EX  ›  PHP

PDO 连接 MySQL 问题求助!

  •  
  •   silenceeeee · 2017-10-13 17:45:06 +08:00 · 1774 次点击
    这是一个创建于 2357 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2017-10-13 18:00:00 +08:00
    cxbig
        1
    cxbig  
       2017-10-13 17:51:52 +08:00
    看具体的数据库选项:
    http://php.net/manual/en/ref.pdo-mysql.php
    silenceeeee
        2
    silenceeeee  
    OP
       2017-10-13 18:00:00 +08:00
    @cxbig 明白了,谢谢!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5475 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:06 · PVG 17:06 · LAX 02:06 · JFK 05:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.