php pdo_mysql使用localhost作为host不行而使用127.0.0.1作为host则OK的原因

The mysql libraries will automatically use Unix sockets if the host of "localhost" is used. To force TCP/IP you need to set an IP address.

posted on 2015-03-25 17:13  darkness_1  阅读(620)  评论(0编辑  收藏  举报

导航