return array(
'components'=>array(
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=weibo',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
),
'db2'=>array(
'class' =>'CDbConnection',
'components'=>array(
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=weibo',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
),
'db2'=>array(
'class' =>'CDbConnection',
'connectionString' => 'oci:dbname=//127.0.0.1:1521/dbname;charset=utf8',//这里设置编码才可以防止乱码
'emulatePrepare' => true,
'username' => 'username',
'password' => 'password',
'charset' => 'utf8',
),
)
)
'username' => 'username',
'password' => 'password',
'charset' => 'utf8',
),
)
)
所有评论
加载评论 ...
发表评论