LoginSignup
6
10

More than 5 years have passed since last update.

CentOS6系,7系へのyum経由のMySQLインストール

Last updated at Posted at 2016-03-16

忘れがちなので自身の備忘録として

導入先OS
・CentOS6系
・CentOS7系

導入バージョン
・MySQL 5.6 (最新版)

CentOS6系レポジトリ
yum -y install http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm

CentOS7系レポジトリ
yum -y install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

CentOS(RHEL共通)版yum経由インストール
yum -y install mysql-community-server mysql mysql-devel mysql-server mysql-utilities
※但し必要に応じて付属パッケージを選択

CentOS6系の自動起動、サービス手動起動及び停止

chkconfig mysqld on
service mysqld start
service mysqld stop

CentOS7系の自動起動、サービス手動起動及び停止

systemctl enable mysqld.service
systemctl start mysqld.service
systemctl stop mysqld.service

レポジトリは通知無く変更する恐れがあるので、レポジトリを登録出来ない場合は

MySQL Community Downloads
http://dev.mysql.com/downloads/

を確認しましょう

6
10
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
6
10