Jump to content

is it possible to have a website on a server, and a Database on an another?...


rootKID

Recommended Posts

hello again, since most of my websites are made in PHP.i would like to ask a maybe little kind of rookie question, if i have 2 servers, and wonna have the Database on the other, and the website on the other.what to do?... i know its possible... just, how?... do i replace the localhost with (examble) speed-scene.com?... (one of my websites)... or do i get it wrong again?... -thanks as usually.

Link to comment
Share on other sites

Yes you need to specify server name and port of mysql server instead of localhost. Also you need to set up firewall so that it dont block transaction over port which is used by mysql server

Link to comment
Share on other sites

ok, thanks...the MySql part with remote connection i allready knew, but what about port?...is that also in localhost?, like so: www.speed.scene.com:8080 (if port 8080)...?

Link to comment
Share on other sites

ok...but localhost = website name... but IF i needed to use a different port, would it be the way i typed before?...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...