ThinkPHP 连接Oracle的配置OCI写法
'DB_TYPE' => 'oracle', // 数据库类型'DB_HOST' => 'oracle.xmspace.net', // server地址
'DB_NAME' => '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.xmspace.net)(PORT=1520))(CONNECT_DATA=(SID=orcl)))', // server地址
'DB_USER' => 'xmspace', // username
'DB_PWD' => 'xmspace.net', // password
'DB_PORT' => 1520, // port
'DB_PREFIX' => 'XM_', // 数据库表前缀
'DB_CHARSET' => 'utf8', // 字符集
'DB_PARAMS' => array(
'persist' => true, //注意。这一个必须写
),
页:
[1]