Need help with simple databases

closed account (1vD3vCM9)
Hey, I posted a post already about this, but I guess people didn't saw.

So I want to learn how to make such thing, that it reads from an ini OR dll file (do I need such thing's?). I want it to read usernames. And passwords.
I saw need something called: SQL.. And the best library for that is MySQL.
although I never worked with SQL. OR libraries.
Please explain me what to do.
Thanks for the help.
Last edited on
What exactly do you want to store? What are the requirements?
A simple text file containing usernames and passwords is a datatabase too.

SQL is a language for queries to relational database management system.
To use it, you will need to install database management system, configure it, create database and then you can access it from other programs.
closed account (48T7M4Gy)
If you aren't familiar with SQL I think C++ is the hard way to learn about SQL. Any associated C++ library is more or less a wrapper to SQL commands and relational database systems so they are one step removed from the technology.

But if you want to try it this way, one library is http://www.sqlapi.com/index.html

MySQL https://www.mysql.com/ or OpenOffice are better starting points. They support ODBC.

Writing it all in relatively simple C++ and/or using structs or classes is also a great way to play around and produce a workable relational database of the type you are thinking about.


closed account (1vD3vCM9)
I'm not fimilar with SQL.
And I don't know even HOW to install a Library..

And what I want to store?
Let's say I got:
#include <windows.h>
#include <iostream>
#include <string>
#include <fstream>

using namespace std;

char title[128] = "Title";
SetConsoleTitle(Title);

--------------
What I want to do, is I want the title to be read from an file (an .ini file will work?).
closed account (1vD3vCM9)
I want the title to be set from the file (just so you know, what I writed there with the char title [128] is just a code I had..
But is SQL a language? If so, how do I program it?
closed account (48T7M4Gy)
SQL is 'structured query language'. See https://www.khanacademy.org/computing/computer-programming/sql

and, http://www.sqlcourse.com/intro.html
Last edited on
Topic archived. No new replies allowed.