手順
yum 設定
/etc/yum.repos.d/mariadb.repo の設定
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.0.1/centos6-x86 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 enabled=1
インストール
MariaDB 関連パッケージのインストール
yum install MariaDB-devel MariaDB-client MariaDB-server
動作確認
ログイン
mysql -uroot
Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 1 Server version: 10.0.1-MariaDB MariaDB Server Copyright (c) 2000, 2012, Oracle, Monty Program Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]>
ストレージエンジンの確認
SHOW ENGINES;
status の確認
status;
設定ファイル
- /etc/my.cnf
# # This group is read both both by the client and the server # use it for options that affect everything # [client-server] # # include all files from the config directory # !includedir /etc/my.cnf.d
- サーバーの設定
/etc/my.cnf.d/server.conf
- クライアントの設定
/etc/my.cnf.d/mysql-clients.cnf
HandlerSocket の導入
INSTALL PLUGIN にてインストール
MariaDB にはすでに HandlerSocket は同梱されているので INSTALL PLUGIN にてインストール
INSTALL PLUGIN handlersocket SONAME 'handlersocket.so';
念の為に確認。
show plugins;
/etc/my.cnf.d/server.conf に設定することも可能
[mysqld] plugin-load=handlersocket.so
まとめ
謝辞
- こちらを参考にさせて頂きました。有難う御座いました。