-
Notifications
You must be signed in to change notification settings - Fork 62
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
MySQL server has gone away #10
Comments
I got the same error when switching from mysql 5.7 to 8.0. Reverting back to 5.7 fixed the issue. @mehdibo did you find a solution to the problem other than reverting back to 5.7? |
No, I always had the issue, it would work for sometime and then randomly stops working. I eventually switched to Travis Ci. Try building your own docker container, I remember using Github Actions with docker-compose that had a db container and it worked fine. |
Adding a - name: Wait for MySQL
run: sleep 15 |
I agree with @almasaeed2010 When i had to make a pipeline for GitLab CI i use the following code before my test execution because sometimes the MySQL service fails.
But |
After a lot of time with inconsistent errors, I did this:
If you think it is a good approach, I don't have a problem adding this note in the README file (and doing a PR) so new users don't waste time. |
better add some timeout as well @NBajanca |
That should definitely added to README.txt to avoid waste of time. |
You may need to add this option: -P 3800 If you are using: host port: 3800 |
I get this error from time to time:
I just re-run the job multiple times until it works.
This is my conf for MySQL setup:
The text was updated successfully, but these errors were encountered: