LoginSignup
22
23

More than 5 years have passed since last update.

AWS Amazon Linux に MySQL 5.6 をインストールする

Posted at

MySQL をインストールする

公式RPMリポジトリを追加して yum install する。

sudo yum install -y http://repo.mysql.com/mysql-community-release-el6-4.noarch.rpm
yum install mysql mysql-devel mysql-server mysql-utilities

MySQL 起動に必要なライブラリをインストールする

yum -y install perl-Data-Dumper

MySQL を起動する

sudo service mysqld start

ついでに自動起動設定をしておく

sudo chkconfig --add mysqld
sudo chkconfig mysqld on

ポートを確認

netstat で 3306 ポートが開放されているか確認。

sudo netstat -antu
22
23
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
22
23