CakePHP错误:未找到模型Aco的数据库表acos [英] CakePHP Error: Database table acos for model Aco was not found

查看:222
本文介绍了CakePHP错误:未找到模型Aco的数据库表acos的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我是新来的CakePHP,我在工作中使用它。我有一台Mac在运行Mac OS X Leopard,以及在家里和一台电脑在工作。



我有我目前工作的项目在所有3,它工作正常在我的工作电脑,但在我的家Mac我得到的标题中的错误。该项目是在SVN上,所以我只是检查出来为我的DB模式运行SQL脚本,并设置了我在我的工作DB中的相同的用户,它将无法正常工作。



显然我已经检查了数据库表和它存在于我的DB。



屏幕截图:



错误屏幕: http://yfrog.com/hsefg1p



CakePHP database.php : http://yfrog.com/h3l1t4p



数据库表: http://yfrog.com/h0v3ajp



数据库权限: http://yfrog.com/h0eu71p

解决方案

最后,错误是在我的数据库用户配置。似乎我忘了设置CRUD权限给我用来访问数据库的用户,这是给我的错误


Hey all, I'm new to CakePHP and I'm using it at work. I have a Mac running Mac OS X Leopard at work as well as at home and a PC at work as well.

I have the project I'm currently working on set up on all 3, it works fine at my work computers but on my home Mac I get the error in the title. The project is on SVN so I just checked it out ran the SQL script for my DB schema and set up the same user I have in my work DB and it will not work still.

I also cleared out the cache folders as suggested in other posts with a similar problem and it still won't work.

Obviously I have checked the database table and it is present in my DB. Anyone have any other clues as to what might be happening?

SCREENSHOTS:

Error Screen: http://yfrog.com/hsefg1p

CakePHP database.php: http://yfrog.com/h3l1t4p

DB tables: http://yfrog.com/h0v3ajp

DB privileges: http://yfrog.com/h0eu71p

解决方案

In the end the error was in my database user configuration. It seems I forgot to set CRUD permissions to the user I use to access the database and that's what gave me the error

这篇关于CakePHP错误:未找到模型Aco的数据库表acos的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆