Page 1 of 1

sub-domains and mysql servers

PostPosted: 26. January 2009 08:57
by dmphotography
Hey there,
I'm curious how do I use a sub-domain for my MySQL database server? So far I've only used "localhost" for my database server name, but if I wanted to use sub-domain names instead, how would I do this?

So far I figured it's probably the same as using a DNS service like Zoneedit.com as I do for my domain names to send them to my IP for my websites, but what else do I need to know.

Do I need to configure port forwarding for the DNS, such as have the DNS direct it to my IP AND port 3306 or whichever port my SQL server is running on? And is there any other settings I need to adjust, such as in my.ini or anything?

The example is I've been using bravehost.com as my paid hosting provider for some years now and they have 10 sql database servers, sql1.bravehost.com, sql2.bravehost.com, and so on. Something like that is what I'd like to replicate with a single sql server.

Thanks in advance!

Re: sub-domains and mysql servers

PostPosted: 26. January 2009 09:07
by Wiedmann
Something like that is what I'd like to replicate with a single sql server.

Makes no really sense... ;-) But just add the "sub-domain names" to your HOSTS file and you can use other names then "localhost" for the connection.

Do I need to configure port forwarding

Only if you directly want access your MySQL server from the internet.