SQLSTATE[42S02]: 基础表或视图未找到:1146 表 ‘blogchan_laravel_blog.categories’ 不存在

huangapple go评论70阅读模式
英文:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blogchan_laravel_blog.categories' doesn't exist

问题

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blogchan_laravel_blog.categories' doesn't exist

如何解决这个问题?请帮助我。

英文:

SQLSTATE[42S02]: 基础表或视图未找到:1146 表 ‘blogchan_laravel_blog.categories’ 不存在

<br />

SQLSTATE[42S02]: 基础表或视图未找到:1146 表 ‘blogchan_laravel_blog.categories’ 不存在

<br />

SQLSTATE[42S02]: Base table or view not found: 1146 Table &#39;blogchan_laravel_blog.categories&#39; doesn&#39;t exist

What is the solution to solve the problem? Help me please.

答案1

得分: 0

根据错误提示,categories 表在您的数据库中不存在。在您的 SQL 查询中,您试图连接到 categories 表。

我不确定您要做什么,但请确保为 categories 表创建一个迁移并定义一个 Category 模型。

英文:

As the error show, the categories table does not exist in your database. In your sql query you are trying to join categories table.

I am not sure what you trying to do but please make sure you create a migration for categories table and define a Category model.

答案2

得分: 0

"似乎你的数据库中缺少类别表。如果尚未创建表迁移,请首先创建表迁移,然后运行迁移。这应该解决问题。"

英文:

As it seems, categories table is missing from your database. First create a migration for the table if you haven't already and then run the migration. That should resolve the issue.

答案3

得分: 0

你还没有在你的数据库中创建名为categories的表。首先创建一个用于categories的迁移文件,然后运行迁移,或者直接在你的数据库中创建这个表,然后检查。

英文:

Its Clear that You Have Not Created any Table Like categories In Your Database.
First Create a Migration File For categories Then run Migration or Create the table directly in your database then Check

huangapple
  • 本文由 发表于 2023年6月15日 10:27:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76478687.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定