How to access another computer mysql database in my computer(which is 50km away)using java
My Friend needs to access my MySQL database remotely using his java program,he has completed all coding but wen we try to connect with IP and correct user name,password,i have disabled my firewall and enabled dmz in my router to open all ports,Still wen tries to communicate,its says communication link failure,there is no permission to access this mysql server. This is the error: java.sql.SQLException: null, message from server: "Host '188.8.131.52' is not allowed to connect to this MySQL server"
The error you received is indication that MySql is blocking the connection. MySql by default will not allow one to connect from a remote machine. You must explicitly grant access for your friend to connect remotely. Typically you would grant to a user#hostname, but you may substitute % for hostname. The downside of this is that it would open it up for anyone using the username (and the password you specify) to connect from anywhere, but eliminates the issues around dynamic IP addressing or NATed networks. For more information see MySql documentation on access control and GRANT command.
Search among Lucene pre-indexing files using PHP?
How to rebuild elasticsearch index when using spring-data-elasticsearch
How do I parse an XML file in Java using either DOM or JAXB when file only has attributes
What is the best way to read and write data from excel using java? [closed]
How to Deal with Enumeration with hash table
Android PorterDuff.Mode.SRC_IN error: Wrong 2nd argument type
Android: How to get app usage activity below API level 21?
Get method reference from class object in JAVA 8
Why is AtomicInteger needed if writes and reads to int variables are atomic?
Swing - GridLayout components not filling up all available space
Get number of CPU mesos allocated to Spark cluster from driver
How to connect android application with OLA API?
Java - Get a value out of JSON using JsonPath
JSF Local config not working
Use variable only after periodic thread has processed it
Can't get image src in html using jsoup