Catalogue
Installing MySQL 5.6 on CentOS 7

Installing MySQL 5.6 on CentOS 7

🌐 日本語で読む

Reference: http://www.kakiro-web.com/linux/mysql-yum-repository-install.html

Download the MySQL repository configuration package

1
$ wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

Install the MySQL repository

1
2
3
4
5
6
7
# rpm -Uvh mysql-community-release-el7-5.noarch.rpm

# MySQL 5.6 のリポジトリ利用
# yum --enablerepo=mysql56-community list | grep mysql

# MySQL 5.6 インストール
# yum --enablerepo=mysql56-community install -y mysql-community-server

For more about the rpm (Redhat Package Management) command, see the following:

http://itpro.nikkeibp.co.jp/article/COLUMN/20060227/230875/

Start / register MySQL

1
2
# systemctl start mysqld.service
# systemctl enable mysqld.service
Accessing the database
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ mysql -u root

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.25 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

If you can connect as shown above, you have succeeded.

That’s all.

Author

Kenzo Tanaka

Posted on

2015-08-05

Licensed under