ThinkPHP 用 pdo 连接postgresql数据库 create() 方法无效!!!!

浏览:4484 发布日期:2013/01/22 分类:技术分享 关键字: postgresql数据库 create() 方法无效
/* //PDO连接方式
'DB_TYPE' => 'pdo', // 数据库类型
'DB_USER' => 'wushuyi', // 用户名
'DB_PWD' => '3.1415926', // 密码
'DB_PREFIX' => 'test_', // 数据库表前缀
'DB_DSN' => 'pgsql:host=localhost;port=5432;dbname=testdb;', */

//非PDO连接
'DB_TYPE' => 'pgsql',
'DB_USER' => 'wushuyi',
'DB_PWD' => '3.1415926',
'DB_PREFIX' => 'test_',
'DB_NAME' => 'testdb',
'DB_PORT' => '5432',
'DB_HOST' => 'localhost',

一样的 代码 用PDO create() 方法无效纠结了 2天
最佳答案
评论( 相关
后面还有条评论,点击查看>>