Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker容器重启后,提示MySQL server has gone away #86

Open
waming opened this issue Jan 7, 2021 · 4 comments
Open

docker容器重启后,提示MySQL server has gone away #86

waming opened this issue Jan 7, 2021 · 4 comments

Comments

@waming
Copy link

waming commented Jan 7, 2021

Describe Your Environment (描述你的环境)

  • System: centos7
  • PHP version: php7.2
  • Mysql version: mysql5.7
  • Swoole version: 4.4.15
  • SMProxy version: 1.3.1

How to Reproduce the Problem? (如何重现问题)

  1. 重启docker 容器后,第一次刷新页面会提示MySQL server has gone away
    2.再次刷新页面正常

More Information (更多信息)

未有明显的错误提示
...

@simpleKalvin
Copy link

这个问题其实有人解决吗? 感觉没什么人解决问题我不是很敢用。。。

@louislivi
Copy link
Owner

这个错误是在mysql 连接异常时进行抛出,可以检查docker启动时,mysql是否正常运行。

1 similar comment
@louislivi
Copy link
Owner

这个错误是在mysql 连接异常时进行抛出,可以检查docker启动时,mysql是否正常运行。

@justmd5
Copy link

justmd5 commented Aug 31, 2021

这个问题其实有人解决吗? 感觉没什么人解决问题我不是很敢用。。。

这是mysql 启动还没就绪吧,是不是使用docker-compose 一起起的服务

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants