0
我有一臺PC,其IP地址是192.168.0.101,而且mysql端口是4000.當我嘗試連接到它時,它工作正常,但是當我使用另一臺PC在同一個局域網IP地址爲192.168.0.107,我不斷收到此異常:如何使用java訪問mysql局域網上的dabasase
Communication link failure due to underlying exception:
**BEGIN NESTED EXCEPTION**
java.net.ConnectionException
MESSAGE: connection timed out......
我看了那麼多帖子像How to make mySQL database at my local accessible from different machines? 但不能找到my.cnf文件。我也經歷了這個Connecting to MySQL Database over server,但仍然無法正常工作。 LAN上的所有計算機都是Windows 7 x86。 請幫我理清這一點。問候...
也許防火牆問題 –
最有可能甚至不打算在網絡上時,它訪問MySQL的同一臺機器。 –
你可以ping ip 192.168.0.107,如果超時,你應該聯繫系統團隊配置它 – Numb