MySQL server has gone away
See original GitHub issueI get this error from time to time:
SQLSTATE[HY000] [2006] MySQL server has gone away
I just re-run the job multiple times until it works. This is my conf for MySQL setup:
- name: Setup MySQL
uses: mirromutth/mysql-action@v1.1
with:
mysql database: test
mysql user: test
mysql password: test
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
B.3.2.7 MySQL server has gone away
The most common reason for the MySQL server has gone away error is that the server timed out and closed the connection. In...
Read more >"MySQL server has gone away" error - Solution(s)
The MySQL server has gone away error, which means that the MySQL server (mysqld) timed out and closed the connection. By default, MySQL...
Read more >How do I fix the error "Mysql Server has gone away"? FAQ
How do I fix the error “Mysql Server has gone away”? · Server timed out and closed the connection. To fix, check that...
Read more >MySQL error 2006: mysql server has gone away
This generally indicates MySQL server connectivity issues or timeouts. Can generally be solved by changing wait_timeout and max_allowed_packet ...
Read more >How to Fix the "MySQL Server Has Gone Away" Error ... - Kinsta
An Introduction to the “MySQL Server Has Gone Away” Error · There's a broken table within your database. Your database became corrupted so...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Adding a
sleep 15
command to wait for the mysql server to become available fixed this issue for me