V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
japeth
V2EX  ›  程序员

Mysql 连接无效(invalid connection)如何解决?

  •  
  •   japeth · Feb 22, 2023 · 767 views
    This topic created in 1162 days ago, the information mentioned may be changed or developed.

    偶现 Mysql 连接无效(invalid connection)应该如何解决? (使用的是从库) 在网上看到 SetConnMaxLifetime()设置的时间小于 wait_timeout 就行,一般建议 wait_timeout/2 。的解决方案

    设置的是 SetConnMaxLifetime()为 2 分钟,timeout10 秒,主库一直都是这么用的,从来没出现这种情况,有大佬懂的吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3926 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:12 · PVG 12:12 · LAX 21:12 · JFK 00:12
    ♥ Do have faith in what you're doing.