ThinkPhp3.2.3项目上线,报错SQLSTATE[HY000] [2002] 错误解决

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

SQLSTATE[HY000] [2002] No such file or directory
错误位置

FILE: /phpstudy/www/mmm/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 109
TRACE

 

解决:

修改配置文件conf.php

将localhost改为127.0.0.1

转载于:https://my.oschina.net/botkenni/blog/837693

你可能感兴趣的:(ThinkPhp3.2.3项目上线,报错SQLSTATE[HY000] [2002] 错误解决)