Skip to content

0xfffffff7/MySQLWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MySQLWrapper for C++

#Install MySQL. install mysql and mysql-devel.
Please install the mysql-devel and mysql using the package management commands.

Please Create a MySQL User, create databases and tables.

#example.cpp setting

mysql user "root"
password "password"

DATABASE NAME "myapp"

MYSQL TABLE EXAMPLE
CREATE TABLE book
(
id INT(11) NOT NULL AUTO_INCREMENT,
title VARCHAR(64),
author_name VARCHAR(32),
detail TEXT,
PRIMARY KEY (id)
);

#compile example gcc -lstdc++ example.cpp mysqlwrapper.cpp -o example -I/usr/include/mysql/ -L/usr/lib64/mysql/ -lmysqlclient

About

MySQLWrapper for C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages