LoginSignup
1
1

More than 5 years have passed since last update.

C言語でMariaDBを使う

Last updated at Posted at 2015-01-19

概要

公式から出ているCのドライバを使って
MariaDBにアクセスするサンプルを作りましたので、そのソースと手順などを共有したいと思います。

環境構築

CentOSを想定しています。

centos7
yum install -y update
yum install -y vim gcc mariadb-server mariadb-devel # 色々インストール
systemctl enable mysqld.service                     # 自動起動
systemctl start mysqld.service                      # 起動

データベースの設定

mysqlと全く同じでした。

MariaDBにアクセス

mysqlと全く同じでした。

コンパイル、実行

mysqlと全く同じでした。

1
1
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
1
1