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

后端 未结 3 1200
暖寄归人
暖寄归人 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:33

    I was facing similar error with MySQL. In my case the problem was that I had made a mistake in granting the rights for the user. Running MySQL client I got a proper "command denied message", but from Yii perspective it looked like the tables did not exist at all.

    The solution was to grant the rights properly:

    grant all on yiiapp.* to 'yii'@'localhost' identified by 'yii';

提交回复
热议问题