Trying to connect to MySQL using Sequel Pro (not working)

Posted November 19, 2014 21.2k views

I am trying to login to my server, using Sequel Pro. I get the error:

Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0

I can access the server fine using terminal, or at the app. But not via Sequel Pro. I can connect fine to the FTP (using Transmit) and my SSH key.

This is how I configure:

The process:
SSH Connecting (completes)
MySQL Connecting (fails).

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

I’ve never use sequel pro myself, but according to Sequel pro’s docs.
I think you should change MySQL host to localhost / at SSH configuration tab.
Since it first connect through SSH then to MySQL server.

By default MySQL only bind to any connection from droplet ip will be blocked.

Sequel pro SSH connection

From Sequel Pro’s FAQ, it is a good pratice to check the FAQ when solving a problem.

My SSH connection gives the error: SSH port forwarding failed and MySQL said: Lost connection to MySQL server at 'reading initial communication packet', system error: 0

On the server, configure MySQL by editing /etc/my.cnf and comment or remove skip-networking from the [mysqld] section. Then, restart MySQL Server. 

@TonyTsang you are awesome. I have been searching for a solution to this for hours. Thank you, thank you, thank you.!!!!!