Yii Framework: The table for active record class cannot be found in the database

后端 未结 3 1198
暖寄归人
暖寄归人 2021-01-19 14:51

I\'m hoping the hivemind has some more suggestions on dealing with this error from Yii Framework. The exact error, specific to our setup is:

3条回答
  •  醉话见心
    2021-01-19 15:36

    It turns out the data was not imported to the named database. Instead it was imported to the user's database. In this case 'postgres'. The fix in this case is to re-import the data to the correct location, or change the Yii config (our decision). New connection settings:

    'db'=>array('connectionString' => 'pgsql:dbname=postgres', 'emulatePrepare' => true, 'username' => 'postgres','password' => '',)
    

提交回复
热议问题