How To Install mysql++ on CentOS 7

In this tutorial we learn how to install mysql++ on CentOS 7. mysql++ is C++ wrapper for the MySQL C API

Introduction

In this tutorial we learn how to install mysql++ on CentOS 7.

What is mysql++

MySQL++ is a C++ wrapper for MySQL’s C API. It is built around STL principles, to make dealing with the database as easy as dealing with an STL container. MySQL++ relieves the programmer of dealing with cumbersome C data structures, generation of repetitive SQL statements, and manual creation of C++ data structures to mirror the database schema. If you are building your own MySQL++-based programs, you also need to install the -devel package.

We can use yum or dnf to install mysql++ on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install mysql++.

Install mysql++ on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mysql++ using yum by running the following command:

sudo yum -y install mysql++

Install mysql++ on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install mysql++ using dnf by running the following command:

sudo dnf -y install mysql++

How To Uninstall mysql++ on CentOS 7

To uninstall only the mysql++ package we can use the following command:

sudo dnf remove mysql++

References

Summary

In this tutorial we learn how to install mysql++ on CentOS 7 using yum and dnf.