LoginSignup
5
2

More than 5 years have passed since last update.

EC2 に MariaDB をインストール

Last updated at Posted at 2018-05-16
リポジトリ設定
$ sudo vi /etc/yum.repos.d/MariaDB.repo

# MariaDB 10.1 CentOS repository list - created 2016-03-13 07:22 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
インストール
$ sudo yum install -y MariaDB-server MariaDB-client mysql-devel
起動
$ sudo service mysql start
Starting MariaDB.180516 14:32:36 mysqld_safe Logging to '/var/lib/mysql/YOURHOSTNAME.err'.
180516 14:32:36 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
 SUCCESS! 
基本設定
$ mysql_secure_installation

Enter current password for root (enter for none): エンター (rootパスワードなしでOK)

Remove anonymous users? [Y/n] エンター (他ユーザのログインは許さない)

Disallow root login remotely? [Y/n] エンター (リモートログインは許さない)

Remove test database and access to it? [Y/n] エンター (テストDBは削除)

Reload privilege tables now? [Y/n] エンター(特権テーブルリロード)

...

Thanks for using MariaDB!

5
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
5
2