![]() |
homecontact ussitemapadvertising | |||
|
|
||||
The Free MMORPG Games- Free MMORPG - P2P Games - Open Beta - Closed Beta - Browser Based - Non-English - Other Free Games - Top 50
|
|
#1 (permalink) |
|
Super Duper Uber Mega Ultra Extreme
|
How does MYSQL and C++ work together? I understand how to use MYSQL to make database, tables, users, etc, but i don't understand how they work together? Whats the purpose of using C++ with MYSQL, what can you do. If you wanted to make an mmo using C++ would you be required to use MYSQL as a database to get players connected and sharing information? I'm just looking for a little help here ;x
|
|
|
|
|
|
#2 (permalink) |
|
Baby Bowsers Soiled Diaper
Join Date: Dec 2007
Location: 59°56′N 30°20′E
Posts: 711
Reputation: 12
MMOFaces Profile:
None Yet
|
My guess is it would be something along the lines of using a client made in C++ to connect to a MYSQL database or whatever, you pretty much answered your own question.
![]()
__________________
![]() Last edited by Z0MBiE : 03-14-2008 at 04:07 AM. |
|
|
|
|
|
#3 (permalink) | |
|
Marios's Mustache Wax
|
Quote:
http://tangentsoft.net/mysql++/doc/ Also, if you built an mmo with C++ you don't necessarily have to use MySQL to store player info .. you could use text files, xml, etc. But MySQL would be a better choice.
__________________
[[ http://www.intelligentgear.com/ ]] |
|
|
|
|
|
|
#5 (permalink) |
|
Link's Dirty Sock
Join Date: Jun 2007
Location: UK
Posts: 48
Reputation: 10
MMOFaces Profile:
None Yet
|
As mentioned earlier the reason you use C++ is to interact with the database. MySQL is basically a big file full of data that has a program that can quickly read out certain parts of that file, rather than having to parse the entire thing.
MySQL like most other DB Engines also uses SQL, which is the language it uses to understand queries that you send it, so you would need to learn that as well as C++ if you are unsure about them both. In C++ you would use a MySQL connector to communicate with this program to insert or retrieve rows, as mentioned by a previous poster. C++ is a programming language so it can do anything from assembly code to making applications, so accessing databases is just like reading a text file. So i wouldnt base a game around being some C++ code that communicates with a database, you will need ALOT more than that to have something classed as a game... |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Copyright © 2004-2007 BlueCastle Media |