- Download MySQL
- Create a new user in MySQL
- Create a new database
- Create a new table called
bankaccounts
using the following command:CREATE TABLE(id int AUTO_INCREMENT PRIMARY KEY, card_number int, name varchar(255), password varchar(255), hash varchar(255), email varchar(255), balance double(32, 2))
- Create a file called
connection_info.txt
in the same directory asmain.cpp
- Write your host, MySQL username, MySQL password, and database name in that order on
4
separate lines inconnection_info.txt
- Save and recompile
main.cpp
with the command:g++ -o main $(mysql_config --cflags) main.cpp $(mysql_config --libs)
hewmatt10/Local_Banking_System
A local tracking device that tracks the flow of money between various bank accounts the user may have.
C++