₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,125 members, 8,438,943 topics. Date: Saturday, 04 July 2026 at 09:54 AM

Toggle theme

How Can I Enable Remote Connection To My Mysql Db - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHow Can I Enable Remote Connection To My Mysql Db (849 Views)

1 Reply (Go Down)

How Can I Enable Remote Connection To My Mysql Db by nnamdiosu(op): 3:15pm On Mar 21, 2015
hi guys. pls I just developed a java GUI software
and I need to access a remote database. but as
we know by default databases won't allow that
except you tell it to grant access. but that's
where I'm stuck. pls has any one developed a
software that accesses a remote db? pls signify.
really appreciate
Re: How Can I Enable Remote Connection To My Mysql Db by javadoctor(m): 3:37pm On Mar 21, 2015
U need to add/grant the permission of the host connecting on mysql, also on machine level, u need to allow the ip and port 3306 rules on iptables
Re: How Can I Enable Remote Connection To My Mysql Db by nnamdiosu(op): 4:12pm On Mar 21, 2015
javadoctor:
U need to add/grant the permission of the host connecting on mysql, also on machine level, u need to allow the ip and port 3306 rules on iptables
thank God you r a java doctor cos I sure do need some medication in java. how exactly do I grant the permission? can I do it from panel? also is there a syntax to do it on the mysql console? pls help. thanks bro

also pls note that the GUI would be used on any system world wide so I need it go allow all ips coming.
Re: How Can I Enable Remote Connection To My Mysql Db by javadoctor(m): 6:52pm On Mar 21, 2015
GRANT ALL PRIVILEGES ON *.* TO 'user'@'ipadress'

You only need to allow one machine, which is the server side to connect to remote mysql, and manage your threads on server side.
Re: How Can I Enable Remote Connection To My Mysql Db by nnamdiosu(op): 7:14pm On Mar 21, 2015
javadoctor:
GRANT ALL PRIVILEGES ON *.* TO 'user'@'ipadress'
wow. thanks so much. so the 'IPaddress' is my server address right? where the database resides?
Re: How Can I Enable Remote Connection To My Mysql Db by javadoctor(m): 9:05pm On Mar 21, 2015
nnamdiosu:
wow. thanks so much. so the 'IPaddress' is my server address right? where the database resides?
Your public address or intranet address in the same subnet where request are coming frm
1 Reply

Lets Start A Real Web-deveopment Course Here Html+css+javascript+php+mysqlCreating A Group Chat With Html/javascript/php/mysql For BeginnersAndroid Quiz Application With Json Parser, Php And Mysql Database234

Programmers please help, I really need to get answers to thisLooking For A Membership Management SoftwareGSM Contacts Database