2016-07-29 8 views
0

私は、簡単な質問は、Oracle DB、唯一のMySQLとPostgreSQLのドキュメントとの枠組みfuelphpの接続を設定するには、どのようにOracleとfuelphpで新しいです:Oracleと接続する方法どのようにfuelphp wih oracleに接続しますか?

// a MySQL driver configuration 
'development' => array(
'type'   => 'mysqli', 
'connection'  => array(
    'hostname'  => 'localhost', 
    'port'   => '3306', 
    'database'  => 'fuel_db', 
    'username'  => 'your_username', 
    'password'  => '[email protected]', 
    'persistent'  => false, 
    'compress'  => false, 
), 
'identifier'  => '`', 
'table_prefix' => '', 
'charset'  => 'utf8', 
'enable_cache' => true, 
'profiling'  => false, 
'readonly'  => false, 
), 

// a PDO driver configuration, using PostgreSQL 
'production' => array(
'type'   => 'pdo', 
'connection'  => array(
    'dsn'   => 'pgsql:host=localhost;dbname=fuel_db', 
    'username'  => 'your_username', 
    'password'  => '[email protected]', 
    'persistent'  => false, 
    'compress'  => false, 
), 
'identifier'  => '"', 
'table_prefix' => '', 
'charset'  => 'utf8', 
'enable_cache' => true, 
'profiling'  => false, 
'readonly'  => array('slave1', 'slave2', 'slave3'), 
) 

?あなた

答えて

0

は、PostgreSQLのPDOの例から作業ありがとう、私はこれをしようと投稿:

'production'  => array(
'type'   => 'pdo', 
'connection'  => array(
    'dsn'   => 'oci:dbname=//hostname:port/database', 
    'username'  => 'your_username', 
    'password'  => '[email protected]', 
    'persistent'  => false, 
    'compress'  => false, 
), 
'identifier'  => '"', 
'table_prefix' => '', 
'charset'  => 'utf8', 
'enable_cache' => true, 
'profiling'  => false, 
'readonly'  => false 
) 

はちょうどあなたが correctly installed & configured PHP OCIドライバをしたことを確認してください。

関連する問題