MySQL Forums
Forum List  »  Connector/JDBC and Java

Please help with exception
Posted by: Zilla Gee
Date: June 27, 2016 05:01PM

java.lang.IllegalArgumentException: Cannot specify localhost/loopback for database connections - use full IP address or host name

I'm running a headless install for a 3rd party product that makes a DB connection to my MySQL instance via TCP. I set up MySQL with bind-address of 127.0.0.1 and netstat -ln tells me that it's listening n 127.0.0.1:3306. I'm able to connect using mysql -u root -h 127.0.0.1. How can I solve/debug above exception?C

I'm new to MySQL, running on Centos 7

Options: ReplyQuote


Subject
Written By
Posted
Please help with exception
June 27, 2016 05:01PM


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.