2
2

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 5 years have passed since last update.

RedHat7にmariadbのインストール

Last updated at Posted at 2017-02-17

chkconfigやら、serviceコマンドが、systemctlコマンドに移行されているようで、
最初少々焦りました。

パッケージインストール

# yum install mariadb mariadb-server

確認

# rpm -qa |grep maria

設定

最低限の設定のみ。
/etc/my.cnfの、[mysqld]ディレクティブに、文字コードを明示的に指定。

[mysqld]
character-set-server = utf8

サーバー起動時のデーモン有効設定

# systemctl list-unit-files mariadb.service
UNIT FILE       STATE
mariadb.service desabled

# systemctl enable mariadb.service
systemctl list-unit-files mariadb.service
mariadb.service enabled

手動での起動と終了はこんな感じ。

# systemctl start mariadb.service
# systemctl stop mariadb.service
2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?