CakePHP Error: Database table acos for model Aco was not found

天大地大妈咪最大 提交于 2020-01-17 03:57:05

问题


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?


回答1:


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




回答2:


If you aren't in debug mode, I would suggest doing that to help troubleshoot. If it works in debug mode, then you've got some sort of caching issue. If it doesn't work in debug mode, my next question is - are your work computers windows? If so, I would look at case-sensitivity issues because Windows and Macs handle case differently.




回答3:


Just encountered the same error. Table creation worked fine from the shell, so it seemed dubious that it wouldn't be able to read it afterwards.

In my case, the fix was to empty cache / tmp folder, as suggested on this french forum.



来源:https://stackoverflow.com/questions/6052959/cakephp-error-database-table-acos-for-model-aco-was-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!