I have these users in MySQL
User | Host |
---|---|
debian-sys-maint | localhost |
mysql.session | localhost |
mysql.sys | localhost |
root | localhost |
I want to connect to it remotely from my mac via SSH
I can't connect. I kept getting
2013 - Lost connection to MySQL server at 'reading initial communication packet', system error: 0 "Internal error/check (Not system error)"
I know if I did add this record below.
root | % |
I will be able to connect, but it seems not very secure to do that. I thought we can connect to our database via SSH. Please correct me what I did wrong.
I don't have anything set in the local firewalls in my server, but I do that have networking firewall rules at Digital Ocean.
All rules configured