java


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
'45.123.3.250' 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.

Related Links

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

Categories

HOME
arduino-uno
listview
netbeans
server
dictionary
path-finding
plone
plot
office365api
razor
leon
ip
podio
midi
u-sql
alignment
vb.net-2010
percona
serverless-framework
facebook-page
database-replication
code-review
scichart
one-hot-encoding
telerik-reporting
trading
dxf
rundeck
java-7
url-scheme
entitlements
junit5
semantic-versioning
create-table
google-qpx-express-api
caret
streamreader
mapzen
gzipstream
sql-server-agent
nxlog
appcompat
dotnetzip
tizen-native-app
integrity
svmlight
darcs
gcsfuse
hittest
ableton-live
httplistener
rotativa
android-textview
lttng
moveit
whois
asp.net5
lemon
google-places
eclipse-clp
python-3.2
security-testing
rgeo
android-listview
cakephp-3.1
service-accounts
myo
clipperlib
modalpopup
rdtsc
starcluster
braille
oracle-warehouse-builder
meteor-velocity
app42
srs
floating-point-precision
mysqltuner
ccss
dir
blending
dbconnection
qt-faststart
rabl
mt
quickdialog
uiviewanimation-curve
spring-portlet-mvc
asyncfileupload
libc++
sql-server-profiler
jmock
blitz++
.nettiers
sproutcore-2
suppress
multi-tier
eqatec
nerddinner
procedural-music
zune

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App