gpt4 book ai didi

mysql - ERROR 2013 (HY000) : Lost connection to MySQL server at 'reading initial communication packet' , 系统错误:104

转载 作者:行者123 更新时间:2023-11-29 06:01:41 24 4
gpt4 key购买 nike

我正在尝试在 ubuntu 服务器 17.04 上设置 mysql,以便我可以远程访问它。

目前它已启动并正在运行,我可以在本地访问它,或者如果我先使用 SSH,但是当我尝试使用 mysql -h <ip> -u <admin> -p 连接时在我的 linux mint 机器上。

它给了我 ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 104

这是我的/etc/mysql/my.cnf

[mysqld]
bind-address = 0.0.0.0
skip-name-resolve

我目前在两台机器上都关闭了防火墙

我的用户是 CREATE USER '<username>'@'%' AS IDENTIFIED BY '<Password>'

我已经多次重启服务器,重启服务,但还没有让它工作。

我也尝试在我的 Windows 机器上使用 HeidiSQL 进行连接,但我遇到了同样的错误。

不知道还能尝试什么

最佳答案

内部端口阻塞的问题

关于mysql - ERROR 2013 (HY000) : Lost connection to MySQL server at 'reading initial communication packet' , 系统错误:104,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44401705/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com