2014-10-08 124 views
0

我已将我的AppServ版本升级到2.6.0。我正在运行以前的版本,一切正常。但现在PHP无法连接到MySQL。该网页需要花费大量的时间来加载,并且当它,一个错误出现说(翻译与谷歌):连接到mysql超时

An error occurred during the connection attempt because the connected party did not properly respond after a period of time or there was an error in the connection established because connected host has failed to respond.

不需要MySQL的完美所有PHP页面。

我使用Windows 7的appserv安装这些版本:

  • 阿帕奇2.2.8
  • PHP 6.0.0 -dev的
  • 的MySQL 6.0.4

编辑:

做一个phpinfo我可以读这行:Client API version: mysqlnd 5.0.4-dev。我所能猜到的是,mysql版本不是我正在使用的版本(6.0.4)。我怎么能解决这个问题?

回答

1

我不确定你需要使用MySQL的alpha版本,除非你确切地知道你在做什么。 我不知道AppServ,但通过Wamp,您可以单独安装不同版本的MySQL。尝试安装稳定版本的MySQL(例如5.5.X)或安装先前版本的AppServ。

+0

谢谢你的帮助。我已经安装了Wamp,一切正常!我比appserv更喜欢这个。 – 2014-10-08 07:43:23