duanqiao8925 2016-08-11 20:29
浏览 2211

连接错误 - SQLSTATE [HY000] [2002]操作超时

I am having trouble connecting from my application server which is a Windows 2008 R2 box to MySQL Server box also running on Windows 2008 R2.

The Laravel application reports the error:

exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Operation timed out'

The odd thing is I can connect via MySQL Workbench from the application server to the MySQL Server using exactly the same credentials and port, and the connection is quick.

Can anyone shed any light on how this can be?

  • 写回答

2条回答 默认 最新

  • dtrz17917 2016-08-11 23:03
    关注

    Check .env file or config\database.php file, set correct username, password, database name, ip and port.

    评论

报告相同问题?

悬赏问题

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