0
有谁知道如何将hive数据库连接到YII框架?对于ODBC连接,YII的文档提供了以下代码。但它不起作用。yii与hive数据库的数据库连接
array(
......
'components'=>array(
......
'db'=>array(
'class'=>'CDbConnection',
'connectionString'=>'mysql:host=localhost;dbname=testdb',
'username'=>'root',
'password'=>'password',
'emulatePrepare'=>true, // needed by some MySQL installations
),
),
)
我想这也有,但是它不建立 –
你设置好的正确的数据库连接,用户名和密码? – scaisEdge