tobibako45 / terraform-practice-ec2

0 stars 0 forks source link

DB入れてみる #6

Open tobibako45 opened 4 years ago

tobibako45 commented 4 years ago

概要

mySQLをEC2にinstall postgreSQLでもいいけど

AWSのEC2で行うAmazon Linux2(MySQL5.7)環境構築 - Qiita

PostgreSQL: postgresql_database - Terraform by HashiCorp

Terraform + さくらのクラウド データベースアプライアンス - Qiita

tobibako45 commented 4 years ago

ん?mysqlはいってるの?

[ec2-user@ip-10-1-1-72 ~]$ yum list installed | grep mariadb
[ec2-user@ip-10-1-1-72 ~]$ yum list installed | grep mysql
mysql-config.x86_64                  5.5.62-1.23.amzn1             @amzn-updates
mysql-devel.noarch                   5.5-1.6.amzn1                 @amzn-main   
mysql55.x86_64                       5.5.62-1.23.amzn1             @amzn-updates
mysql55-devel.x86_64                 5.5.62-1.23.amzn1             @amzn-updates
mysql55-libs.x86_64                  5.5.62-1.23.amzn1             @amzn-updates

installできるか確認

[ec2-user@ip-10-1-1-72 ~]$ yum info mysql
読み込んだプラグイン:priorities, update-motd, upgrade-helper
利用可能なパッケージ
名前                : mysql
アーキテクチャー    : noarch
バージョン          : 5.5
リリース            : 1.6.amzn1
容量                : 2.7 k
リポジトリー        : amzn-main/latest
要約                : MySQL meta package
URL                 : http://www.mysql.com
ライセンス          : GPLv2 with exceptions
説明                : MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
                    : client/server implementation consisting of a server daemon (mysqld)
                    : and many different client programs and libraries. The base package
                    : contains the standard MySQL client programs and generic MySQL files.