Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Reply to this topicStart new topic
> How Do You Make Large Databases?
lonebyrd
post Apr 21 2007, 02:01 AM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 302
Joined: 23-February 06
From: Northeastern Connecticut USA
Member No.: 11,487



In a game I'm working on, I would like to have a database of actors/actresses. I'm not sure exactly how to do this. I'm pretty sure with the hosting here, I can only have 99 databases. I'm a little lost as to how to make it. Can all the actors/actresses be put on one database with the specific things I want to include (i.e. how well the do in each genre)? I'm new to Mysql and just need some help as to where to start.
Go to the top of the page
 
+Quote Post
faulty.lee
post Apr 21 2007, 11:59 AM
Post #2


Premium Member
Group Icon

Group: [HOSTED]
Posts: 478
Joined: 5-November 06
Member No.: 17,016



In actual fact, 99 databases is more than enough. You only need mostly 1 database per application, not per requirement of that application. What you need more is probably the number of tables. Current limit of the number of tables per database for MySQL, which according to some forum i searched, it is in the order of billion. I bet you won't need that much table anytime in the future.

For your case, i think to store those actors/actresses, you probably only need 1 table. Maybe a few more you have you a lot of things to keep, and some of which is duplicate, so you can split them into multiple table.

To have a good start, I'll recommend MySql Cookbook by O'Reilly. It's a good book to get you starting, cause it target more about application than theory. Of cause you'll need some theory book to learn if you don't have the basics.

Let me know if you can't find the book, I have a digital copy with me, and if you're not against piracy. If you can find one, buy it, it's worth it.

Good Luck
Go to the top of the page
 
+Quote Post
TavoxPeru
post Apr 21 2007, 05:19 PM
Post #3


Super Member
Group Icon

Group: [HOSTED]
Posts: 750
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



QUOTE(lonebyrd @ Apr 20 2007, 09:01 PM) *
In a game I'm working on, I would like to have a database of actors/actresses. I'm not sure exactly how to do this. I'm pretty sure with the hosting here, I can only have 99 databases. I'm a little lost as to how to make it. Can all the actors/actresses be put on one database with the specific things I want to include (i.e. how well the do in each genre)? I'm new to Mysql and just need some help as to where to start.

Yes, all your actors/actresses can be pUt on only one database, also, in this database you can put other tables to store your categories, genres, etc.

Bet regards,
Go to the top of the page
 
+Quote Post
yordan
post Apr 21 2007, 10:26 PM
Post #4


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,980
Joined: 16-August 05
Member No.: 7,896



More probably, you need a single database for everything.
And for each game, or for each set of games, you need a single table.
Eache player has a record in that table. The rows in that table will probably be the player unique ID, the player name, the player level reached, and the code for the game situation (an internal code, like 18AK16 meaning "reached level 18 wich one Abakus, one Keyboard ans 16 lives remaining).
Go to the top of the page
 
+Quote Post
vhortex
post Apr 22 2007, 04:27 PM
Post #5


Guilty Until Proven Innocent
Group Icon

Group: Members
Posts: 372
Joined: 13-April 05
Member No.: 3,937



QUOTE(lonebyrd @ Apr 21 2007, 10:01 AM) *
In a game I'm working on, I would like to have a database of actors/actresses. I'm not sure exactly how to do this. I'm pretty sure with the hosting here, I can only have 99 databases. I'm a little lost as to how to make it. Can all the actors/actresses be put on one database with the specific things I want to include (i.e. how well the do in each genre)? I'm new to Mysql and just need some help as to where to start.


It will fit in one database.

All the stats that you need can be put in one database table.
Then one database table for the players..

You must plan accordingly ahead the data that you need to store, how long will you store them and how you will get the inputs and what dat must be stored from user inputs.

First thing you must know is proper layouting of database columns since this will be the core of your program.
------

Then also decide how you link each data together.
Go to the top of the page
 
+Quote Post
TavoxPeru
post Apr 27 2007, 02:38 AM
Post #6


Super Member
Group Icon

Group: [HOSTED]
Posts: 750
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



QUOTE(vhortex @ Apr 22 2007, 11:27 AM) *
It will fit in one database.

All the stats that you need can be put in one database table.
Then one database table for the players..

You must plan accordingly ahead the data that you need to store, how long will you store them and how you will get the inputs and what dat must be stored from user inputs.

First thing you must know is proper layouting of database columns since this will be the core of your program.
------

Then also decide how you link each data together.

That's correct, you must do it prior to any other task, even you do it you will tune it up on the road, i suggest to start with a logical and a physical model of your database and then start to code your application.

Best regards,
Go to the top of the page
 
+Quote Post
ethergeek
post Apr 27 2007, 09:26 PM
Post #7


Premium Member
Group Icon

Group: [HOSTED]
Posts: 393
Joined: 9-March 07
From: Tucson, AZ
Member No.: 20,794



Just an FYI point...if you use the default MySQL table type (MyISAM) you won't have support for foreign keys and won't be able to enforce referential integrity constraints, so make sure to set your table type to InnoDB. This can be a b1tch (I can't believe it censors that!) if you go through the hassle of normalizing your schema only to realize that your hard work had no effect on the query processor and you have no guarantee of the data being normalized, as the DBMS won't enforce RI constraints.

This post has been edited by ethergeek: Apr 27 2007, 09:27 PM
Go to the top of the page
 
+Quote Post
lonebyrd
post Apr 28 2007, 02:30 AM
Post #8


Premium Member
Group Icon

Group: Members
Posts: 302
Joined: 23-February 06
From: Northeastern Connecticut USA
Member No.: 11,487



I was actually looking into getting a MySQL book, and was looking at the Cookbook by O'Reilly. I believe I've got some other programming books that are also O'Reilly. I'm glad to hear that someone is giving the thumbs up for that book. Now I think that will be the one I get.
Go to the top of the page
 
+Quote Post
TavoxPeru
post Apr 29 2007, 11:14 AM
Post #9


Super Member
Group Icon

Group: [HOSTED]
Posts: 750
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



QUOTE(lonebyrd @ Apr 27 2007, 09:30 PM) *
I was actually looking into getting a MySQL book, and was looking at the Cookbook by O'Reilly. I believe I've got some other programming books that are also O'Reilly. I'm glad to hear that someone is giving the thumbs up for that book. Now I think that will be the one I get.

You can download free books for MySql from the Tutorials Downloads website, also you can find there a lot of different books related to databases, php, multimedia, os's, compilers, etc.

I'm not pretty sure but i think that i view the Cookbook there.

Best regards,
Go to the top of the page
 
+Quote Post
lonebyrd
post Apr 29 2007, 06:58 PM
Post #10


Premium Member
Group Icon

Group: Members
Posts: 302
Joined: 23-February 06
From: Northeastern Connecticut USA
Member No.: 11,487



I looked into that site you mentioned, and you are correct. They did have the MySQL Cookbook there. Of course it's just my luck that it was a dead link. Some sort of error like 'Page not found'. But there does look like there could be some other stuff there I would like... If the pages work.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Make A Text Based Online Game Script ?(23)
  2. Enhanced Audio Cd's(2)
  3. Conquer Online(10)
  4. Online Multiplayer Game(16)
  5. Make Your Own FPS Game(32)
  6. Photoshop Tutorial: How To Make A Userbar For Signatures(34)
  7. How To Make A CS 1.6 Map ?(15)
  8. Site To Create Your Own MMORPGs(33)
  9. How To Run A Proxy On a Web-Server?(20)
  10. Real Driving(17)
  11. How To Make Realistic Fire!(13)
  12. Psybnc - Howto(4)
  13. A Beginner Wanting To Learn How To Make A Web Game(4)
  14. How To Make Windows Xp Faster(30)
  15. Looking For Linux(34)
  1. Powerpoint Based Games!(18)
  2. Make A Wish And It'll Come True...if....(6)
  3. How To Make A PM (Personal Message) System?(4)
  4. How To Make An Test-based Rpg Game!(4)
  5. How To Make A Private Message System.(9)
  6. How To Make Your Own Web Host(2)
  7. Mmorpg(1)
  8. Make It Impossible To View Page Source(11)
  9. Get Paid To Search Yahoo!(10)
  10. Anyone Willing To Make A Text-based Game With Me?(4)
  11. Make Money Online With Cashcrate - A Scam?(4)
  12. Is It Possible To Make Php Scripts Executed Without A Cron?(2)
  13. Center Update(5)


 



- Lo-Fi Version Time is now: 7th September 2008 - 12:55 AM