lost connection to mysql server at 'reading initial communication packet',system error:2

刚接触MySql不久,首次使用SQLyog这个工具远程连接Linux里面安装好的MySql数据库:

lost connection to mysql server at 'reading initial communication packet',system error:2_第1张图片

却报错:

lost connection to mysql server at 'reading initial communication packet',system error:2_第2张图片

后来才发现,端口默认应该是3306,而我写成了22,改成3306后,就可以了。


你可能感兴趣的:(lost connection to mysql server at 'reading initial communication packet',system error:2)