Skip to content

Add some simple retry logic in PHP for MySQL connection errors #48

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

Merged
merged 1 commit into from
Jan 22, 2015
Merged

Conversation

tianon
Copy link
Member

@tianon tianon commented Jan 22, 2015

Since we're already connecting to the server in PHP, we might as well put the retry logic here directly instead of hacking something up in Bash.

This includes a maximum of 10 tries with 3 seconds in between.

Fixes #17
Closes #19

Since we're already connecting to the server in PHP, we might as well put the retry logic here directly instead of hacking something up in Bash.

This includes a maximum of 10 tries with 3 seconds in between.
@yosifkit
Copy link
Member

LGTM

@tianon
Copy link
Member Author

tianon commented Jan 22, 2015

care to give us an extra set of eyes, @md5? 👍

@md5
Copy link
Contributor

md5 commented Jan 22, 2015

LGTM

yosifkit added a commit that referenced this pull request Jan 22, 2015
Add some simple retry logic in PHP for MySQL connection errors
@yosifkit yosifkit merged commit 3211ee8 into docker-library:master Jan 22, 2015
@yosifkit yosifkit deleted the retry branch January 22, 2015 23:25
tianon added a commit to infosiftr/stackbrew that referenced this pull request Jan 26, 2015
- `golang`: update to use `buildpack-deps:*-scm` (docker-library/golang#38)
- `mongo`: replace 2.8 with 3.0.0-rc6 (docker-library/mongo#19)
- `php`: 5.4.37, 5.5.21, 5.6.5
- `tomcat`: 8.0.18
- `wordpress`: use `/etc/hosts` instead of env (docker-library/wordpress#42) and add simple mysql-retry logic to entrypoint (docker-library/wordpress#48)
@borekb borekb mentioned this pull request Mar 19, 2019
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

Successfully merging this pull request may close these issues.

Can't connect to official MySQL server
3 participants