mirromutth/mysql-action

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

Closed this issue · 1 comments

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

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..)