将PDO连接中的dsn的host由“localhost”改为“127.0.0.1”即可
pdo mysql连接时报[2002] No such file or directory
最新推荐文章于 2024-01-03 11:18:25 发布
将PDO连接中的dsn的host由“localhost”改为“127.0.0.1”即可