Jump to content


I have a question about mysql


18 replies to this topic

#1 timothyinspa

    Member

  • Members
  • PipPip
  • 78 posts

Posted 04 October 2008 - 07:28 AM

Is having my sql on a computer, make that computer a server for a game?
Thanks

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 04 October 2008 - 07:52 AM

If your game needs MySQL to run, then you have to have a MySQL server, obviously. But having a MySQL server alone doesn't make a fully-functional game server. If it's a web-based game you'll need a web server as well, for example. If it uses a custom protocol, you'll need a custom server.
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 timothyinspa

    Member

  • Members
  • PipPip
  • 78 posts

Posted 04 October 2008 - 08:39 AM

so what does my sql do basically?

#4 ville-v

    New Member

  • Members
  • PipPip
  • 23 posts

Posted 04 October 2008 - 10:16 AM

timothyinspa said:

so what does my sql do basically?
It is database server. If your other server wants to write into or read from a SQL database, it will contact the SQL server that is running on your computer. That SQL server could be on another computer, too, but that would mean it is very slow.

#5 timothyinspa

    Member

  • Members
  • PipPip
  • 78 posts

Posted 04 October 2008 - 02:05 PM

So is mysql a freeware or a software that cost?
because i heard from people its Microsoft's software for free, but going to the mysql site it says u have to pay? Please correct me if i am wrong. Thanks

#6 TheNut

    Senior Member

  • Moderators
  • 1401 posts
  • LocationThornhill, ON

Posted 04 October 2008 - 03:48 PM

Heh, the software brand mixing game ;) SQL Server and MySQL are similar products (database software), but from different companies. SQL Server is developed by Microsoft and it costs, but they do have an "express" edition which is free although I've never bothered with it. MySQL is maintained by Sun Microsystems (yeah, the Java guys) and it's both open source (free) and has commercial options.
http://www.nutty.ca - Being a nut has its advantages.

#7 timothyinspa

    Member

  • Members
  • PipPip
  • 78 posts

Posted 05 October 2008 - 01:28 AM

lol i am confused, but to certain extend I get what you mean.
Sometimes i saw some really huge server machines that take up a whole room, are those server also?

#8 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 05 October 2008 - 01:56 AM

Yes, the word "server" can mean either a program running on a computer (like a MySQL server or a web server) or the computer itself. The machines that you see that take up a whole room are actually many many individual servers stored on racks.
reedbeta.com - developer blog, OpenGL demos, and other projects

#9 timothyinspa

    Member

  • Members
  • PipPip
  • 78 posts

Posted 05 October 2008 - 06:11 AM

so does it mean if i want to host my own website, i can just use a normal computer, and not hire those website hosting companies. Right?

#10 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 05 October 2008 - 08:33 AM

Yes, assuming that you leave your computer on all the time (the website will be down when the computer is turned off, obviously).
reedbeta.com - developer blog, OpenGL demos, and other projects

#11 timothyinspa

    Member

  • Members
  • PipPip
  • 78 posts

Posted 05 October 2008 - 10:02 AM

so it means that i can buy two computers or more and make them servers and one turns off the another is still on, does it work?

#12 fireside

    Senior Member

  • Members
  • PipPipPipPip
  • 1200 posts

Posted 05 October 2008 - 06:25 PM

I know people that have home servers like that, so I know it works. If you have a high speed connection and your traffic isn't too bad. You might want to look into free web sites that use advertising for revenue. Some of them have php and mysql databases. It's a nice, inexpensive way to get started. I had one for a while, but went to an inexpensive pay site. I just did a search for "free web hosting".

#13 TheNut

    Senior Member

  • Moderators
  • 1401 posts
  • LocationThornhill, ON

Posted 05 October 2008 - 08:16 PM

Are you talking about clustering servers? If so, then that's the idea behind it. If one server machine fails and shuts down, any other server that is still on and running will take over. You have to implement this logic however. It's not something that comes with your web server. There's quite a bit of logic behind it and varies depending on what sort of product you're making.
http://www.nutty.ca - Being a nut has its advantages.

#14 timothyinspa

    Member

  • Members
  • PipPip
  • 78 posts

Posted 06 October 2008 - 09:48 AM

besides hosting website, i have a question about domain.... where can i get one,and why do i have to renew it?

#15 ville-v

    New Member

  • Members
  • PipPip
  • 23 posts

Posted 06 October 2008 - 10:57 AM

timothyinspa said:

besides hosting website, i have a question about domain.... where can i get one
http://www.google.fi...?q=get+a+domain

timothyinspa said:

and why do i have to renew it?
http://www.google.fi...main+name%3F%22

#16 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 06 October 2008 - 05:02 PM

You might want to make those links to the English google instead of the Finnish one. ;) (Or maybe the Chinese one, since timothy is in Hong Kong...)
reedbeta.com - developer blog, OpenGL demos, and other projects

#17 ville-v

    New Member

  • Members
  • PipPip
  • 23 posts

Posted 06 October 2008 - 05:04 PM

Reedbeta said:

You might want to make those links to the English google instead of the Finnish one. ;) (Or maybe the Chinese one, since timothy is in Hong Kong...)
*blushes*

Well, at least the link names are in English and the only thing to do is to click them.

#18 timothyinspa

    Member

  • Members
  • PipPip
  • 78 posts

Posted 07 October 2008 - 01:31 AM

nah i have no problem reading the english links lol thanks :)

#19 alphadog

    DevMaster Staff

  • Moderators
  • 1603 posts

Posted 09 October 2008 - 12:38 PM

From the thread, are we to assume that you want to create a web-based game and host it yourself?

If so, first, you may want to make sure your service provider that you use to connect to the Internet allows you to host per your AUP. I just had to switch from a residential account to a business account with Comcast, my ISP, because I was running a mail server and they nailed me on it.

Secondly, you'll need to figure out how to host a website. I'm assuming you have a Windows machine? The web server will be Microsoft's IIS which, depending on the version of Windows you have may be included, or you could put the free Apache server, which is widespread and has a big community behind it.

Then, you'll have to pick a platform to develop your game. That's an even more confusing area...

Any other questions? :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users