Starting with Zend Tutorial - Zend_DB_Adapter throws Exception: “SQLSTATE[HY000] [2002] No such file or directory”
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i start learning Zend Framework with the Book "Zend Framework in Action" in German. Right there where it start to get interesting my PHP Unit Test throws this Error: "Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory" I cant find any hints at google. I did everything like in the book. Can anyone give me a hint where to search my fault? Is this a usual beginner mistake? 回答1: I would say that you have a problem connecting from PHP to MySQL... Something like PHP trying to find some socket file, and not finding it,