By Canfiax
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: https://www.dropbox.com/s/yjbugvrswtzbrqz/Skærmbillede 2014-11-19 21.39.18.png?dl=0
The process: SSH Connecting (completes) MySQL Connecting (fails).
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
@TonyTsang you are awesome. I have been searching for a solution to this for hours. Thank you, thank you, thank you.!!!
I’ve never use sequel pro myself, but according to Sequel pro’s docs. I think you should change MySQL host to localhost / 127.0.0.1 at SSH configuration tab. Since it first connect through SSH then to MySQL server.
By default MySQL only bind to 127.0.0.1 any connection from droplet ip will be blocked.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.