doumie6223 2015-03-15 09:59
浏览 223

使用PHP,MySQL连接速度很慢

I am timing a simple query using PHP's microtime(true) function before and after. The query is SELECT NOW() and the execution time is 0.015625 seconds which is believe to be 15 milliseconds - this is far too long for such a basic query!

I know there is definitely something wrong with my setup, but I cannot seem to fix it.

I am running Windows Server 2008 R2 64-bit with PHP 5.4, MySQL 5.6 Server and IIS 7.5.

I have tried changing the host name to 127.0.0.1 and adding code to the hosts file, as well as modifying php.ini and my.ini - nothing seems to speed it up.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器