问题
I've been developing locally on MacOS X Snow Leopard using PHP 5.3, CodeIgniter 2.0 and HMVC Modular Extensions. Everything has been working great.
Suddenly, for no reason I can pinpoint, I am occasionally getting this error when trying to bring up a page:
Unable to select the specified database: app Filename: /Library/WebServer/Documents/www/development/appdb/third_party/MX/Loader.php Line Number: 96
The error doesn't occur at any specific place, it just seems to appear every 5-10 page loads or so. It usually goes away after a refresh, although sometimes I may need to refresh a couple of times.
Has anyone encountered this error before? Is it just some flakiness in mySQL on my Mac? (I also tried exporting the current DB and re-importing it under a different name and assigning that new DB, but the problem persists. I don't know of a way to test and "repair" a MySQL DB on a Mac.)
Thanks in advance for any help!
Gary
回答1:
This is just an issue with your MySQL database. While I'm not sure what that issue is, HMVC has nothing to do with it.
The error comes from there as the loader is extended by HMVC, but no logic is changed. I'd fix up your database or install MAMP.
来源:https://stackoverflow.com/questions/6324467/trouble-with-hmvc-modular-extensions-for-codeigniter