I have a CakePHP application that is running fine locally. I uploaded it to a production server and the first page that uses a database connection gives the "Missing Database Table" error. When I look at the controller dump, it's complaining about the first table.
I've tried a variety of things to fix this problem, with no luck:
I think I've eliminating the obvious problems and my research isn't turning anything up. I feel like I'm missing something obvious. Any ideas?
Did you try checking to see if the production database is being picked up correctly ? Try an echo on the production server, and see what database it selects. Also, make sure the tables don`t have different case names, than on the production server. MySQL can be configured to make a difference between 'Table' and 'table'. You may have some lines of code that are selecting different databases based on the TLD, like I see being done many times.
Epic fail on my part. There was a space at the end of my database name in the database.php. Interesting that this didn't return a connection issue (perhaps they trim the name on testing the connection?).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.