Cake php:在数据源默认情况下找不到模型Cate的错误表类别

When i run the ./cake bake all command i get the following error:

my sql in connection statRunning with xampp -

how to fix this problem ?

Cake expects there to be a table that corresponds to every Model class. The standard format for the table names is the pluralized version of the model name. It is failing because you don't have a table cates, which is the plural form of your model Cate.

You can get around this by specifying what table you want the model to use by setting $useTable in the model.

Cate Model:

$useTable = 'categories'