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

Exit when mysql is absent #30

Open
camlafit opened this issue Aug 19, 2024 · 1 comment
Open

Exit when mysql is absent #30

camlafit opened this issue Aug 19, 2024 · 1 comment

Comments

@camlafit
Copy link
Contributor

Hi

For different reason, mysql could be down during php7-fpm execution.
In this case, all pool are deleted and break all sites hosted.

We must check mysql state and ran script only we are sure mysql state

@camlafit
Copy link
Contributor Author

We can have different use case as :

  • MysqlPDO instanceSQLSTATE[08004] [1040] Too many connections
  • MysqlPDO instanceSQLSTATE[HY000] [2002] Connection reset by peer
  • MysqlPDO instanceSQLSTATE[HY000] [2002] Connection refused
  • PHP Warning: PDO::query(): MySQL server has gone away

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

1 participant