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

Lost connection to MySQL server at 'reading initial communication packet' #16

Closed
SuperCoolGuy855 opened this issue Jul 30, 2020 · 1 comment

Comments

@SuperCoolGuy855
Copy link

SuperCoolGuy855 commented Jul 30, 2020

I tried to import a SQL file:
mysql -h 127.0.0.1 -u admin -p123456789 < recovery.sql
but it returns "Lost connection to MySQL server at 'reading initial communication packet'" and I don't know what to do.
Some pointers would be appreciated. Thanks

@TiraTom
Copy link

TiraTom commented Sep 22, 2020

How about waiting the mysql-action complete boot up?
After I had added sleep 15 before mysql -h 127.0.0.1 -u ..., I didn't encounter the error.
(I'm sorry but I have no idea how to write a script check if their operations have completed well..)

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

2 participants