sub-domains and mysql servers

Problems with the Windows version of XAMPP, questions, comments, and anything related.

sub-domains and mysql servers

Postby dmphotography » 26. January 2009 08:57

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!
For great video and written tutorials and guides on creating your own web server and installing things such as forums, blogs, etc., visit http://myownhomeserver.com
dmphotography
 
Posts: 191
Joined: 15. December 2008 14:25
Location: Columbus, MS
Operating System: Windows 7

Re: sub-domains and mysql servers

Postby Wiedmann » 26. January 2009 09:07

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.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 70 guests