浏览器端返回错误信息think does not exist

Error: ER_NO_SUCH_TABLE: Table ‘mana.think_chap_name’ doesn’t exist, SQL: SELECT * FROM think_chap_name

连接数据库后在index.js中添加

async dbAction(){
        let list=await this.model("chap_name").select();
        return this.success(list);
    }

的数据后,在网站上报错:

Error: ER_NO_SUCH_TABLE: Table ‘mana.think_chap_name’ doesn’t exist, SQL: SELECT * FROM think_chap_name
也就是说提醒think_chap_name这个表不能查找到
??????
所以我干脆把数据库的表改成think_chap_name
问题解决

猜你喜欢

转载自blog.csdn.net/weixin_44051236/article/details/106291174