1. 检查host, user, pwd等参数 2. 设置127.0.0.1 作为host Bug https://bugs.php.net/bug.php?id=61570 3.检查MySQL数据库时候启动了。