0

I want to access my database using MySQL in c++ programs. I know that I can connect MySQL with c++ code blocks with using xampp server and Dev-C++ in windows but in case of Ubuntu, I don't have any idea.

How can I connect c++ with MySQL in Ubuntu?

Thanks in advance.

1 Answer 1

1

MySQL Connector/C++ (libmysqlcppconn-dev) is a MySQL database connector for C++. To install it open the terminal and type:

sudo apt install libmysqlcppconn-dev  

This package contains the development files (headers, static library).

For a server you can use Apache (apache2) or XAMPP as in Windows.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .