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

uniquely identifying each test invocation in testng
How to use TLS 1.2 in Java 6
libGDX makes screen smaller [Ubuntu]
Angular Working with object: Fix it
URL encoding of “&”
Camel JDBC Route - CamelJdbcRowCount missing
ReeantrantLock and Condition variable
How to Display Help In Wizard's Tray
Retrieve view in OnClickListener
How do I let a user interrupt an endless loop in Java?
Cannot take picture or choose image from gallery
How do you use PrintJobInfo.Builder where I can setCopies in android.print?
remove termination symbol from xml
Putting unique random number in array
Android SQL database organization [closed]
How to resolv: java.sql.SQLException: setDate, Exception = Invalid year value

Categories

HOME
testng
listview
proxy
mockito
mean-stack
razor
google-oauth
sqlite3
win32gui
ckeditor
multiple-records
medical
fancybox-3
export-to-csv
kvc
rundeck
spark-jobserver
react-css-modules
linkerd
minitab
publish
typo3-6.2.x
gsmcomm
delicious-api
frame
siesta-swift
perlin-noise
framemaker
form-data
force-layout
android-ble
lto
gesture
objectlistview
sharefile
squib
core-plot
powershell-dsc
janrain
glew
acoustics
segment
babel-core
auto-update
multipeer-connectivity
pnotify
powercli
feeds
sqlbulkcopy
python-cryptography
memory-alignment
arrow-keys
spring-cache
parallel-data-warehouse
android-fonts
passport-google-oauth
infix-notation
url-masking
phishing
bstr
holder.js
actionbardrawertoggle
captivenetwork
apachebench
freedesktop.org
srand
teamcity-8.0
cyclomatic-complexity
wyam
sframe
ideamart
block-device
jsonpickle
xc16
internet-connection
openexr
bundles
industrial
dir
tidy
ftps
jplaton
libstdc++
manchester-syntax
cascalog
qtkit
buildr
ohm
netdna-api
window-management
zpt
hirefire
cxxtest
fluent-interface
web-application-design
preference
user-friendly
multi-tier
compiler-specific
privilege
paul-graham

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App