mysql:install_from_repository
                差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| mysql:install_from_repository [2014/11/04 09:43] – clownclown | mysql:install_from_repository [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== CentOS6.xにMySQLをyumでインストール ====== | ====== CentOS6.xにMySQLをyumでインストール ====== | ||
| - | ===== リポジトリ登録  | + | < | 
| - | {{section>centos:yum:quick_repo& | + | # cat / | 
| + | CentOS release 6.7 (Final) | ||
| + | # uname -a | ||
| + | Linux my01 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux | ||
| + | </ | ||
| + | |||
| + | ===== リポジトリとインストール可能Ver  | ||
| + | |||
| + | ==== 標準リポジトリのみ ==== | ||
| + | |||
| + | updatesリポジトリからVer5.1がインストール可能 | ||
| + | |||
| + | <code> | ||
| + | # yum install mysql-server mysql-client mysql-devel | ||
| + | ~省略~ | ||
| + | ========================================================================================== | ||
| + |   | ||
| + |                                           バージョン  | ||
| + | ========================================================================================== | ||
| + | インストールしています: | ||
| + |   | ||
| + |   | ||
| + | ~省略~ | ||
| + | </ | ||
| + | |||
| + | ==== remiリポジトリ ==== | ||
| + | |||
| + | PHPとの親和を考えてremiリポジトリからインストール、と思うとVer5.5がインストール可能 | ||
| + | |||
| + | < | ||
| + | # rpm -Uvh http:// | ||
| + | # rpm -Uvh http:// | ||
| + | # rpm -Uvh http:// | ||
| + | |||
| + | # yum --enablerepo=remi, | ||
| + | ~省略~ | ||
| + | ========================================================================================== | ||
| + |   | ||
| + |                                           バージョン  | ||
| + | ========================================================================================== | ||
| + | インストールしています: | ||
| + |   | ||
| + |   | ||
| + |   | ||
| + | ~省略~ | ||
| + | </ | ||
| + | |||
| + | ==== 公式リポジトリ ==== | ||
| + | |||
| + | 公式リポジトリからは、標準でVer5.7が、任意でVer5.6がインストール可能 | ||
| + | |||
| + | < | ||
| + | # yum install http:// | ||
| + | |||
| + | # less / | ||
| + | |||
| + | [mysql-connectors-community] | ||
| + | name=MySQL Connectors Community | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | |||
| + | [mysql-tools-community] | ||
| + | name=MySQL Tools Community | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | |||
| + | # Enable to use MySQL 5.5 | ||
| + | [mysql55-community] | ||
| + | name=MySQL 5.5 Community Server | ||
| + | baseurl=http:// | ||
| + | enabled=0 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | |||
| + | # Enable to use MySQL 5.6 | ||
| + | [mysql56-community] | ||
| + | name=MySQL 5.6 Community Server | ||
| + | baseurl=http:// | ||
| + | enabled=0 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | |||
| + | [mysql57-community] | ||
| + | name=MySQL 5.7 Community Server | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=1 | ||
| + | gpgkey=file:/// | ||
| + | |||
| + | |||
| + | # yum install mysql-community-server mysql-community-devel | ||
| + | ~省略~ | ||
| + | ========================================================================================== | ||
| + |   | ||
| + |                                       | ||
| + | ========================================================================================== | ||
| + | インストールしています: | ||
| + |   | ||
| + |   | ||
| + |       | ||
| + |   | ||
| + | ~省略~ | ||
| + | |||
| + | # yum --enablerepo=mysql56-community --disablerepo=mysql57-community install mysql-community-server mysql-community-devel | ||
| + | ~省略~ | ||
| + | ========================================================================================== | ||
| + |   | ||
| + |                                       | ||
| + | ========================================================================================== | ||
| + | インストールしています: | ||
| + |   | ||
| + |   | ||
| + |       | ||
| + |   | ||
| + | ~省略~ | ||
| + | </ | ||
| ===== インストール ===== | ===== インストール ===== | ||
mysql/install_from_repository.1415094218.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)
                
                