夏北风
Results
2
comments of
夏北风

# **找到原因了。** 我也遇到了同样的问题,后来在文件中var_dump(mysql_errno()); 和var_dump(mysql_error());,得到的结果是mysql 2002错误。 2002 (CR_CONNECTION_ERROR) - Can't connect to local MySQL server through socket '%s' (%d)。 我自己本机的开发环境配置了很多虚拟主机,但是在安装的时候默认填写的是localhost,导致报错,后来把localhost改成我本机配置的虚拟主机名称www.typecho.test就好了。