Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Linking a Database to SFML game  (Read 2680 times)

0 Members and 1 Guest are viewing this topic.

Walta69

  • Newbie
  • *
  • Posts: 30
    • View Profile
Linking a Database to SFML game
« on: May 13, 2014, 07:43:35 pm »
Alright, so I have spent countless hours trying to find something remotely similar to
what I want and there is no simple answer.

All I want is a simple MySql database which I can connect to my sfml game. I don't need anything
advanced. My problem is that I want the database to be local as I will only need to access it from 1
computer. How can I go about doing this??

I am using Visual Studio 2013 and everything seems so complicated with trying to link databases.

Note: I have done a useless course on databases where we learn't sql but not actually how to use
it with our C++ programs :/ Treat me as such :P

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Linking a Database to SFML game
« Reply #1 on: May 13, 2014, 07:55:21 pm »
Since this isn't really related to SFML, some other more generic C++ community would've done it as well, but if you want something local, there's really no need in running a whole MySQL server or something, instead I'd rather suggest something like SQLite.

Other than that, there are countless libraries for database connections, some better than others, you'll just have to spend some time with your best friend Google. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Walta69

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Linking a Database to SFML game
« Reply #2 on: May 13, 2014, 07:59:30 pm »
Alright thanks alot :) I'll look into it :)