0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

rocky linuxでmysql-connector-c++をレポジトリ経由で導入する

Posted at

mysql(mariadb)をc++で操作するためのライブラリはmysql-connector-c++

レポジトリをインストール

以下から該当するバージョンのレポジトリをインストール
https://dev.mysql.com/downloads/repo/yum/

$ sudo yum install https://dev.mysql.com/get/mysql80-community-release-el8-4.noarch.rpm
$ sudo dnf install mysql-connector-c++-devel

mysql-connector-c++ライブラリのヘッダーファイルの場所は/usr/include/mysql-cppconn-8/jdbc/
ライブラリのパスは/lib64/libmysqlcppconn.so.9
なのでMakefileなどでは上記ファイルとパスを指定してmakeする。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?