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

さくらのVPSにMariaDBをインストール

Last updated at Posted at 2019-12-30

さくらのVPSの申込みが完了して一発目にMariaDBをインストールするまでの備忘録

リポジトリを指定

MariaDBのリポジトリを下記のコマンドで指定します。

$ curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

MariaDBをインストール

下記の手順に従ってインストールを実施。

インストール

$ sudo yum install MariaDB-server MariaDB-client

MariaDBのサービスを開始

$ sudo systemctl start mariadb

サーバー起動時にサービスも自動起動するようにする

$ sudo systemctl enable mariadb

MariaDBの初期設定

$ mysql_secure_installation

設定ファイルの場所

MariaDBの設定ファイルは下記のディレクトリにあります。

/etc/my.conf.d

ちなみに

セキュリティ上、ポート番号変えたりユーザー権限変えたり、要件によって追加の設定はした方がいいと思います。

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?