Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以通过 SSH 连接到我的服务器,然后使用终端很好地连接到 MySQL。我在 Sequel Pro 中使用相同的凭据并收到以下消息:
MySQL 说:Can't connect to MySQL server on '127.0.0.1' (4)
我以前从来没有遇到过这个问题。我的同事对服务器进行了一些调整后,它最近才开始(不幸的是,他现在几天都无法访问)。知道为什么我可以通过终端(命令行)正常连接但不能通过 Sequel Pro 连接吗?谢谢!
这最终是因为对 iptables 所做的更改。无法详细说明,但规则变得更加严格。