SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0 解决方案
远程服务器的操作系统:Ubuntu
本地:navicat +win10
连接名:随意填写
主机名:localhost
端口:3306
用户名:连接电脑的数据库的用户名
密码:连接电脑的数据库的密码
主机名:远程服务器的ip
端口:22
用户名:远程服务器的用户名
密码:远程服务器的密码
解决错误的方法:修改bind-address = 0.0.0.0
路径:vim /etc/mysql/mysql.conf.d/mysqld.cnf