MySQL Forums
Forum List  »  General

Can't connect to local DB using IP instead of localhost
Posted by: Maxim Markaitis
Date: May 13, 2014 06:30AM

Java program connects via jdbc:mysql://localhost:3306/customers fine.
Buf if to replace localhost with my IP "jdbc:mysql://111.222.333.444:3306/customers" I receive:


com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

I need my server could be connectable from another hosts.
How to configure this?
I use MySQL 5.2 running it as a service.
OS: Windows XP

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.