/    Sign up×
Community /Pin to ProfileBookmark

is it possible to access a mysql database from a different domain ?

Hi,

I cannot figure any way to access a database that I have on a remote site ? Is it at least doable or not (for security reasons) ? If yes, could you help me ?

thanks a lot !

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 22.2007 — It is possible, but requires that the database/host be configured to allow remote connections. In such a case, you usually have to specify a port number as part of the hostname in your connection, e.g. "hostname.com:123".
Copy linkTweet thisAlerts:
@patimagesauthorApr 22.2007 — I tried that way and it did not work. I guess it is not configured that way. I ll chack with the hosting service.

thanks again NogDog for all your help in dozens of my posts !
Copy linkTweet thisAlerts:
@NogDogApr 22.2007 — That hostname:port example was just that: an example. You'd have to find out what actual port number has been configured for remote database access (if the host allows remote connections at all).
×

Success!

Help @patimages spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...