Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
agusk committed Dec 28, 2013
1 parent fdb2433 commit 7d671f8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,35 @@
C++ code ilustration for CRUD (Create, Read, Update, Delete) with MySQL database.


## System Requirements

Linux platform with installed g++ and MySQL for database testing. For Debian/Ubuntu, you can install mysql-server and mysql-client.

$ sudo apt-get install mysql-server mysql-client

You also need MySQL Development library, libmysqlcppconn-dev.

$ sudo apt-get install libmysqlcppconn-dev

## Database

For database testing, you can run database.sql script to execute database and table.

## Compiling & Linking

Before compiling, please change database configured based on your MySQL configuration. To build demo-create-data.cpp, you do the following command.

$ g++ -c -I/usr/include/cppconn demo-create-data.cpp
$ g++ -o demo-create-data demo-create-data.o -L/usr/lib/mysql -lmysqlcppconn


You can compile use make.

$ cd src/
$ make




## License

Expand Down

0 comments on commit 7d671f8

Please sign in to comment.