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.
我在一个网络中有 5 个系统,如何检测哪些系统安装了 MySQL 服务器?
MySQL 服务器侦听本地端口上的请求3306。telnet可以告诉您该位置是否有响应
3306
telnet someserver 3306
然而,端口可能配置不同(例如9999)。并且服务器防火墙可能会阻止对该端口的任何访问(因为某些 MySQL 服务器是从本地应用程序访问的,例如 PHP,因此不需要外部访问)。
9999
假设 MySQL 在每台服务器的默认端口上运行,只需尝试在端口 3306 上“正常”连接到数据库。