Technical posts/MySQL

MySQL 5.7 rpm 한방 설치 / MySQL 5.7 5분안에 설치

ODB 2016. 6. 10. 11:11

MySQL 5.7 5분안에 설치하기...


최대한 쉽고 빠르게 설치할 수 있도록 명령어를 정리했다


1. 기존 라이브러리 삭제

2. mysql 설치에 필요한 라이브러리 설치

3. mysql 번들 모두 설치

4. mysql 시작


http://dev.mysql.com/downloads/mysql/ 에서 mysql-5.7.13-1.el7.x86_64.rpm-bundle.tar 를 받아 tar를 풀고

아래를 복사 붙여넣기 하면 된다

yum remove mysql-libs-5.1.71-1.el6.x86_64


yum install glibc libgcc libgcc*.i686 libstdc++ libstdc++*.i686 openssl openssl*.i686 libaio libaio*.i686 numactl numactl*i686 ncurses-libs ncurses-libs*.i686


rpm -Uvh mysql-community-common-5.7.13-1.el6.i686.rpm

rpm -Uvh mysql-community-libs-5.7.13-1.el6.i686.rpm

rpm -Uvh mysql-community-libs-compat-5.7.13-1.el6.i686.rpm

rpm -Uvh mysql-community-devel-5.7.13-1.el6.i686.rpm

rpm -Uvh mysql-community-embedded-5.7.13-1.el6.i686.rpm

rpm -Uvh mysql-community-embedded-devel-5.7.13-1.el6.i686.rpm

rpm -Uvh mysql-community-client-5.7.13-1.el6.i686.rpm

rpm -Uvh mysql-community-server-5.7.13-1.el6.i686.rpm


service mysqld start 



실제로 해보고 얼마나 걸리는지 확인하자


[root@localhost rpm]# date

Wed Jun  8 16:42:19 PDT 2016

[root@localhost rpm]# 

[root@localhost rpm]# yum -y remove mysql-libs-5.1.71-1.el6.x86_64

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Remove Process

Resolving Dependencies

--> Running transaction check

---> Package mysql-libs.x86_64 0:5.1.71-1.el6 will be erased

--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64

--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-2.2.el6_1.x86_64

--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-2.2.el6_1.x86_64

--> Running transaction check

---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be erased

--> Processing Dependency: /usr/sbin/sendmail for package: cronie-1.4.4-12.el6.x86_64

--> Running transaction check

---> Package cronie.x86_64 0:1.4.4-12.el6 will be erased

--> Processing Dependency: cronie = 1.4.4-12.el6 for package: cronie-anacron-1.4.4-12.el6.x86_64

--> Running transaction check

---> Package cronie-anacron.x86_64 0:1.4.4-12.el6 will be erased

--> Processing Dependency: /etc/cron.d for package: crontabs-1.10-33.el6.noarch

--> Processing Dependency: /etc/cron.d for package: sysstat-9.0.4-22.el6.x86_64

--> Restarting Dependency Resolution with new changes.

--> Running transaction check

---> Package crontabs.noarch 0:1.10-33.el6 will be erased

---> Package sysstat.x86_64 0:9.0.4-22.el6 will be erased

--> Finished Dependency Resolution

base                                                                                                   | 3.7 kB     00:00     

base/primary_db                                                                                        | 4.7 MB     00:01     

extras                                                                                                 | 3.4 kB     00:00     

extras/primary_db                                                                                      |  36 kB     00:00     

updates                                                                                                | 3.4 kB     00:00     

updates/primary_db                                                                                     | 732 kB     00:00     


Dependencies Resolved


==============================================================================================================================

 Package                 Arch            Version                      Repository                                         Size

==============================================================================================================================

Removing:

 mysql-libs              x86_64          5.1.71-1.el6                 @anaconda-CentOS-201311272149.x86_64/6.5          4.0 M

Removing for dependencies:

 cronie                  x86_64          1.4.4-12.el6                 @anaconda-CentOS-201311272149.x86_64/6.5          174 k

 cronie-anacron          x86_64          1.4.4-12.el6                 @anaconda-CentOS-201311272149.x86_64/6.5           43 k

 crontabs                noarch          1.10-33.el6                  @anaconda-CentOS-201311272149.x86_64/6.5          2.4 k

 postfix                 x86_64          2:2.6.6-2.2.el6_1            @anaconda-CentOS-201311272149.x86_64/6.5          9.7 M

 sysstat                 x86_64          9.0.4-22.el6                 @anaconda-CentOS-201311272149.x86_64/6.5          824 k


Transaction Summary

==============================================================================================================================

Remove        6 Package(s)


Installed size: 15 M

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Erasing    : sysstat-9.0.4-22.el6.x86_64                                                                                1/6 

  Erasing    : cronie-1.4.4-12.el6.x86_64                                                                                 2/6 

  Erasing    : cronie-anacron-1.4.4-12.el6.x86_64                                                                         3/6 

  Erasing    : crontabs-1.10-33.el6.noarch                                                                                4/6 

  Erasing    : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                           5/6 

  Erasing    : mysql-libs-5.1.71-1.el6.x86_64                                                                             6/6 

  Verifying  : cronie-anacron-1.4.4-12.el6.x86_64                                                                         1/6 

  Verifying  : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                           2/6 

  Verifying  : mysql-libs-5.1.71-1.el6.x86_64                                                                             3/6 

  Verifying  : crontabs-1.10-33.el6.noarch                                                                                4/6 

  Verifying  : sysstat-9.0.4-22.el6.x86_64                                                                                5/6 

  Verifying  : cronie-1.4.4-12.el6.x86_64                                                                                 6/6 


Removed:

  mysql-libs.x86_64 0:5.1.71-1.el6                                                                                            


Dependency Removed:

  cronie.x86_64 0:1.4.4-12.el6             cronie-anacron.x86_64 0:1.4.4-12.el6         crontabs.noarch 0:1.10-33.el6        

  postfix.x86_64 2:2.6.6-2.2.el6_1         sysstat.x86_64 0:9.0.4-22.el6               


Complete!

[root@localhost rpm]# 

[root@localhost rpm]# yum -y install glibc libgcc libgcc*.i686 libstdc++ libstdc++*.i686 openssl openssl*.i686 libaio libaio*.i686 numactl numactl*i686 ncurses-libs ncurses-libs*.i686

Loaded plugins: fastestmirror, refresh-packagekit, security

Determining fastest mirrors

 * base: mirror.premi.st

 * extras: mirror.premi.st

 * updates: mirror.premi.st

Setting up Install Process

Package libaio-0.3.107-10.el6.x86_64 already installed and latest version

Resolving Dependencies

--> Running transaction check

---> Package glibc.x86_64 0:2.12-1.132.el6 will be updated

--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-headers-2.12-1.132.el6.x86_64

--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-common-2.12-1.132.el6.x86_64

--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.x86_64

---> Package glibc.x86_64 0:2.12-1.192.el6 will be an update

---> Package libaio.i686 0:0.3.107-10.el6 will be installed

---> Package libaio-devel.i686 0:0.3.107-10.el6 will be installed

---> Package libgcc.x86_64 0:4.4.7-4.el6 will be updated

---> Package libgcc.i686 0:4.4.7-17.el6 will be installed

---> Package libgcc.x86_64 0:4.4.7-17.el6 will be an update

---> Package libstdc++.x86_64 0:4.4.7-4.el6 will be updated

---> Package libstdc++.i686 0:4.4.7-17.el6 will be installed

--> Processing Dependency: libm.so.6(GLIBC_2.0) for package: libstdc++-4.4.7-17.el6.i686

--> Processing Dependency: libm.so.6 for package: libstdc++-4.4.7-17.el6.i686

--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: libstdc++-4.4.7-17.el6.i686

--> Processing Dependency: ld-linux.so.2(GLIBC_2.3) for package: libstdc++-4.4.7-17.el6.i686

--> Processing Dependency: ld-linux.so.2 for package: libstdc++-4.4.7-17.el6.i686

---> Package libstdc++.x86_64 0:4.4.7-17.el6 will be an update

---> Package libstdc++-devel.i686 0:4.4.7-17.el6 will be installed

---> Package ncurses-libs.x86_64 0:5.7-3.20090208.el6 will be updated

---> Package ncurses-libs.i686 0:5.7-4.20090207.el6 will be installed

--> Processing Dependency: ncurses-base = 5.7-4.20090207.el6 for package: ncurses-libs-5.7-4.20090207.el6.i686

---> Package ncurses-libs.x86_64 0:5.7-4.20090207.el6 will be an update

---> Package numactl.x86_64 0:2.0.7-8.el6 will be updated

---> Package numactl.i686 0:2.0.9-2.el6 will be installed

---> Package numactl.x86_64 0:2.0.9-2.el6 will be an update

---> Package numactl-devel.i686 0:2.0.9-2.el6 will be installed

---> Package openssl.x86_64 0:1.0.1e-15.el6 will be updated

---> Package openssl.i686 0:1.0.1e-48.el6_8.1 will be installed

--> Processing Dependency: libz.so.1 for package: openssl-1.0.1e-48.el6_8.1.i686

--> Processing Dependency: libkrb5.so.3(krb5_3_MIT) for package: openssl-1.0.1e-48.el6_8.1.i686

--> Processing Dependency: libkrb5.so.3 for package: openssl-1.0.1e-48.el6_8.1.i686

--> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT) for package: openssl-1.0.1e-48.el6_8.1.i686

--> Processing Dependency: libk5crypto.so.3 for package: openssl-1.0.1e-48.el6_8.1.i686

--> Processing Dependency: libgssapi_krb5.so.2 for package: openssl-1.0.1e-48.el6_8.1.i686

--> Processing Dependency: libcom_err.so.2 for package: openssl-1.0.1e-48.el6_8.1.i686

---> Package openssl.x86_64 0:1.0.1e-48.el6_8.1 will be an update

---> Package openssl-devel.i686 0:1.0.1e-48.el6_8.1 will be installed

--> Processing Dependency: zlib-devel for package: openssl-devel-1.0.1e-48.el6_8.1.i686

--> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-48.el6_8.1.i686

---> Package openssl098e.i686 0:0.9.8e-20.el6.centos.1 will be installed

--> Running transaction check

---> Package glibc.i686 0:2.12-1.192.el6 will be installed

--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.192.el6.i686

--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.192.el6.i686

---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be updated

---> Package glibc-common.x86_64 0:2.12-1.192.el6 will be an update

--> Processing Dependency: tzdata >= 2015g-4 for package: glibc-common-2.12-1.192.el6.x86_64

---> Package glibc-devel.x86_64 0:2.12-1.132.el6 will be updated

---> Package glibc-devel.x86_64 0:2.12-1.192.el6 will be an update

---> Package glibc-headers.x86_64 0:2.12-1.132.el6 will be updated

---> Package glibc-headers.x86_64 0:2.12-1.192.el6 will be an update

---> Package krb5-devel.x86_64 0:1.10.3-57.el6 will be installed

--> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-57.el6.x86_64

--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-57.el6.x86_64

--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-57.el6.x86_64

---> Package krb5-libs.x86_64 0:1.10.3-10.el6_4.6 will be updated

---> Package krb5-libs.i686 0:1.10.3-57.el6 will be installed

--> Processing Dependency: libselinux.so.1 for package: krb5-libs-1.10.3-57.el6.i686

--> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3) for package: krb5-libs-1.10.3-57.el6.i686

--> Processing Dependency: libkeyutils.so.1 for package: krb5-libs-1.10.3-57.el6.i686

---> Package krb5-libs.x86_64 0:1.10.3-57.el6 will be an update

---> Package libcom_err.x86_64 0:1.41.12-18.el6 will be updated

--> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: e2fsprogs-libs-1.41.12-18.el6.x86_64

--> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: libss-1.41.12-18.el6.x86_64

--> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: e2fsprogs-1.41.12-18.el6.x86_64

---> Package libcom_err.i686 0:1.41.12-22.el6 will be installed

---> Package libcom_err.x86_64 0:1.41.12-22.el6 will be an update

---> Package ncurses-base.x86_64 0:5.7-3.20090208.el6 will be updated

---> Package ncurses-base.x86_64 0:5.7-4.20090207.el6 will be an update

---> Package zlib.i686 0:1.2.3-29.el6 will be installed

---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed

--> Running transaction check

---> Package e2fsprogs.x86_64 0:1.41.12-18.el6 will be updated

---> Package e2fsprogs.x86_64 0:1.41.12-22.el6 will be an update

---> Package e2fsprogs-libs.x86_64 0:1.41.12-18.el6 will be updated

---> Package e2fsprogs-libs.x86_64 0:1.41.12-22.el6 will be an update

---> Package keyutils-libs.x86_64 0:1.4-4.el6 will be updated

---> Package keyutils-libs.i686 0:1.4-5.el6 will be installed

---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be an update

---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed

---> Package libcom_err-devel.x86_64 0:1.41.12-22.el6 will be installed

---> Package libselinux.x86_64 0:2.0.94-5.3.el6_4.1 will be updated

--> Processing Dependency: libselinux = 2.0.94-5.3.el6_4.1 for package: libselinux-python-2.0.94-5.3.el6_4.1.x86_64

--> Processing Dependency: libselinux = 2.0.94-5.3.el6_4.1 for package: libselinux-utils-2.0.94-5.3.el6_4.1.x86_64

---> Package libselinux.i686 0:2.0.94-7.el6 will be installed

---> Package libselinux.x86_64 0:2.0.94-7.el6 will be an update

---> Package libselinux-devel.x86_64 0:2.0.94-7.el6 will be installed

--> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-7.el6.x86_64

--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-7.el6.x86_64

---> Package libss.x86_64 0:1.41.12-18.el6 will be updated

---> Package libss.x86_64 0:1.41.12-22.el6 will be an update

---> Package nss-softokn-freebl.x86_64 0:3.14.3-9.el6 will be updated

---> Package nss-softokn-freebl.i686 0:3.14.3-23.el6_7 will be installed

---> Package nss-softokn-freebl.x86_64 0:3.14.3-23.el6_7 will be an update

---> Package tzdata.noarch 0:2013g-1.el6 will be updated

---> Package tzdata.noarch 0:2016d-1.el6 will be an update

--> Running transaction check

---> Package libselinux-python.x86_64 0:2.0.94-5.3.el6_4.1 will be updated

---> Package libselinux-python.x86_64 0:2.0.94-7.el6 will be an update

---> Package libselinux-utils.x86_64 0:2.0.94-5.3.el6_4.1 will be updated

---> Package libselinux-utils.x86_64 0:2.0.94-7.el6 will be an update

---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed

--> Finished Dependency Resolution


Dependencies Resolved


==============================================================================================================================

 Package                            Arch                  Version                                Repository              Size

==============================================================================================================================

Installing:

 libaio                             i686                  0.3.107-10.el6                         base                    21 k

 libaio-devel                       i686                  0.3.107-10.el6                         base                    13 k

 libgcc                             i686                  4.4.7-17.el6                           base                   114 k

 libstdc++                          i686                  4.4.7-17.el6                           base                   302 k

 libstdc++-devel                    i686                  4.4.7-17.el6                           base                   1.6 M

 ncurses-libs                       i686                  5.7-4.20090207.el6                     base                   249 k

 numactl                            i686                  2.0.9-2.el6                            base                    69 k

 numactl-devel                      i686                  2.0.9-2.el6                            base                    40 k

 openssl                            i686                  1.0.1e-48.el6_8.1                      updates                1.5 M

 openssl-devel                      i686                  1.0.1e-48.el6_8.1                      updates                1.2 M

 openssl098e                        i686                  0.9.8e-20.el6.centos.1                 base                   774 k

Updating:

 glibc                              x86_64                2.12-1.192.el6                         base                   3.8 M

 libgcc                             x86_64                4.4.7-17.el6                           base                   103 k

 libstdc++                          x86_64                4.4.7-17.el6                           base                   295 k

 ncurses-libs                       x86_64                5.7-4.20090207.el6                     base                   245 k

 numactl                            x86_64                2.0.9-2.el6                            base                    74 k

 openssl                            x86_64                1.0.1e-48.el6_8.1                      updates                1.5 M

Installing for dependencies:

 glibc                              i686                  2.12-1.192.el6                         base                   4.4 M

 keyutils-libs                      i686                  1.4-5.el6                              base                    20 k

 keyutils-libs-devel                x86_64                1.4-5.el6                              base                    29 k

 krb5-devel                         x86_64                1.10.3-57.el6                          base                   504 k

 krb5-libs                          i686                  1.10.3-57.el6                          base                   778 k

 libcom_err                         i686                  1.41.12-22.el6                         base                    37 k

 libcom_err-devel                   x86_64                1.41.12-22.el6                         base                    33 k

 libselinux                         i686                  2.0.94-7.el6                           base                   109 k

 libselinux-devel                   x86_64                2.0.94-7.el6                           base                   137 k

 libsepol-devel                     x86_64                2.0.41-4.el6                           base                    64 k

 nss-softokn-freebl                 i686                  3.14.3-23.el6_7                        base                   157 k

 zlib                               i686                  1.2.3-29.el6                           base                    73 k

 zlib-devel                         x86_64                1.2.3-29.el6                           base                    44 k

Updating for dependencies:

 e2fsprogs                          x86_64                1.41.12-22.el6                         base                   554 k

 e2fsprogs-libs                     x86_64                1.41.12-22.el6                         base                   121 k

 glibc-common                       x86_64                2.12-1.192.el6                         base                    14 M

 glibc-devel                        x86_64                2.12-1.192.el6                         base                   988 k

 glibc-headers                      x86_64                2.12-1.192.el6                         base                   617 k

 keyutils-libs                      x86_64                1.4-5.el6                              base                    20 k

 krb5-libs                          x86_64                1.10.3-57.el6                          base                   770 k

 libcom_err                         x86_64                1.41.12-22.el6                         base                    37 k

 libselinux                         x86_64                2.0.94-7.el6                           base                   109 k

 libselinux-python                  x86_64                2.0.94-7.el6                           base                   203 k

 libselinux-utils                   x86_64                2.0.94-7.el6                           base                    82 k

 libss                              x86_64                1.41.12-22.el6                         base                    42 k

 ncurses-base                       x86_64                5.7-4.20090207.el6                     base                    61 k

 nss-softokn-freebl                 x86_64                3.14.3-23.el6_7                        base                   167 k

 tzdata                             noarch                2016d-1.el6                            updates                451 k


Transaction Summary

==============================================================================================================================

Install      24 Package(s)

Upgrade      21 Package(s)


Total download size: 36 M

Downloading Packages:

(1/45): e2fsprogs-1.41.12-22.el6.x86_64.rpm                                                            | 554 kB     00:01     

(2/45): e2fsprogs-libs-1.41.12-22.el6.x86_64.rpm                                                       | 121 kB     00:00     

(3/45): glibc-2.12-1.192.el6.i686.rpm                                                                  | 4.4 MB     00:08     

(4/45): glibc-2.12-1.192.el6.x86_64.rpm                                                                | 3.8 MB     00:07     

(5/45): glibc-common-2.12-1.192.el6.x86_64.rpm                                                         |  14 MB     00:23     

(6/45): glibc-devel-2.12-1.192.el6.x86_64.rpm                                                          | 988 kB     00:01     

(7/45): glibc-headers-2.12-1.192.el6.x86_64.rpm                                                        | 617 kB     00:01     

(8/45): keyutils-libs-1.4-5.el6.i686.rpm                                                               |  20 kB     00:00     

(9/45): keyutils-libs-1.4-5.el6.x86_64.rpm                                                             |  20 kB     00:00     

(10/45): keyutils-libs-devel-1.4-5.el6.x86_64.rpm                                                      |  29 kB     00:00     

(11/45): krb5-devel-1.10.3-57.el6.x86_64.rpm                                                           | 504 kB     00:00     

(12/45): krb5-libs-1.10.3-57.el6.i686.rpm                                                              | 778 kB     00:01     

(13/45): krb5-libs-1.10.3-57.el6.x86_64.rpm                                                            | 770 kB     00:01     

(14/45): libaio-0.3.107-10.el6.i686.rpm                                                                |  21 kB     00:00     

(15/45): libaio-devel-0.3.107-10.el6.i686.rpm                                                          |  13 kB     00:00     

(16/45): libcom_err-1.41.12-22.el6.i686.rpm                                                            |  37 kB     00:00     

(17/45): libcom_err-1.41.12-22.el6.x86_64.rpm                                                          |  37 kB     00:00     

(18/45): libcom_err-devel-1.41.12-22.el6.x86_64.rpm                                                    |  33 kB     00:00     

(19/45): libgcc-4.4.7-17.el6.i686.rpm                                                                  | 114 kB     00:00     

(20/45): libgcc-4.4.7-17.el6.x86_64.rpm                                                                | 103 kB     00:00     

(21/45): libselinux-2.0.94-7.el6.i686.rpm                                                              | 109 kB     00:00     

(22/45): libselinux-2.0.94-7.el6.x86_64.rpm                                                            | 109 kB     00:00     

(23/45): libselinux-devel-2.0.94-7.el6.x86_64.rpm                                                      | 137 kB     00:00     

(24/45): libselinux-python-2.0.94-7.el6.x86_64.rpm                                                     | 203 kB     00:00     

(25/45): libselinux-utils-2.0.94-7.el6.x86_64.rpm                                                      |  82 kB     00:00     

(26/45): libsepol-devel-2.0.41-4.el6.x86_64.rpm                                                        |  64 kB     00:00     

(27/45): libss-1.41.12-22.el6.x86_64.rpm                                                               |  42 kB     00:00     

(28/45): libstdc++-4.4.7-17.el6.i686.rpm                                                               | 302 kB     00:00     

(29/45): libstdc++-4.4.7-17.el6.x86_64.rpm                                                             | 295 kB     00:00     

(30/45): libstdc++-devel-4.4.7-17.el6.i686.rpm                                                         | 1.6 MB     00:02     

(31/45): ncurses-base-5.7-4.20090207.el6.x86_64.rpm                                                    |  61 kB     00:00     

(32/45): ncurses-libs-5.7-4.20090207.el6.i686.rpm                                                      | 249 kB     00:00     

(33/45): ncurses-libs-5.7-4.20090207.el6.x86_64.rpm                                                    | 245 kB     00:00     

(34/45): nss-softokn-freebl-3.14.3-23.el6_7.i686.rpm                                                   | 157 kB     00:00     

(35/45): nss-softokn-freebl-3.14.3-23.el6_7.x86_64.rpm                                                 | 167 kB     00:00     

(36/45): numactl-2.0.9-2.el6.i686.rpm                                                                  |  69 kB     00:00     

(37/45): numactl-2.0.9-2.el6.x86_64.rpm                                                                |  74 kB     00:00     

(38/45): numactl-devel-2.0.9-2.el6.i686.rpm                                                            |  40 kB     00:00     

(39/45): openssl-1.0.1e-48.el6_8.1.i686.rpm                                                            | 1.5 MB     00:02     

(40/45): openssl-1.0.1e-48.el6_8.1.x86_64.rpm                                                          | 1.5 MB     00:02     

(41/45): openssl-devel-1.0.1e-48.el6_8.1.i686.rpm                                                      | 1.2 MB     00:02     

(42/45): openssl098e-0.9.8e-20.el6.centos.1.i686.rpm                                                   | 774 kB     00:01     

(43/45): tzdata-2016d-1.el6.noarch.rpm                                                                 | 451 kB     00:00     

(44/45): zlib-1.2.3-29.el6.i686.rpm                                                                    |  73 kB     00:00     

(45/45): zlib-devel-1.2.3-29.el6.x86_64.rpm                                                            |  44 kB     00:00     

------------------------------------------------------------------------------------------------------------------------------

Total                                                                                         555 kB/s |  36 MB     01:07     

warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Importing GPG key 0xC105B9DE:

 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>

 Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5)

 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Updating   : libgcc-4.4.7-17.el6.x86_64                                                                                1/66 

  Updating   : ncurses-base-5.7-4.20090207.el6.x86_64                                                                    2/66 

  Updating   : tzdata-2016d-1.el6.noarch                                                                                 3/66 

  Updating   : glibc-common-2.12-1.192.el6.x86_64                                                                        4/66 

  Updating   : nss-softokn-freebl-3.14.3-23.el6_7.x86_64                                                                 5/66 

  Updating   : glibc-2.12-1.192.el6.x86_64                                                                               6/66 

  Updating   : libcom_err-1.41.12-22.el6.x86_64                                                                          7/66 

  Updating   : libselinux-2.0.94-7.el6.x86_64                                                                            8/66 

  Updating   : keyutils-libs-1.4-5.el6.x86_64                                                                            9/66 

  Updating   : krb5-libs-1.10.3-57.el6.x86_64                                                                           10/66 

  Updating   : openssl-1.0.1e-48.el6_8.1.x86_64                                                                         11/66 

  Installing : keyutils-libs-devel-1.4-5.el6.x86_64                                                                     12/66 

  Updating   : libss-1.41.12-22.el6.x86_64                                                                              13/66 

  Installing : libcom_err-devel-1.41.12-22.el6.x86_64                                                                   14/66 

  Updating   : e2fsprogs-libs-1.41.12-22.el6.x86_64                                                                     15/66 

  Updating   : numactl-2.0.9-2.el6.x86_64                                                                               16/66 

  Updating   : glibc-headers-2.12-1.192.el6.x86_64                                                                      17/66 

  Installing : libsepol-devel-2.0.41-4.el6.x86_64                                                                       18/66 

  Installing : nss-softokn-freebl-3.14.3-23.el6_7.i686                                                                  19/66 

  Installing : glibc-2.12-1.192.el6.i686                                                                                20/66 

  Installing : libselinux-devel-2.0.94-7.el6.x86_64                                                                     21/66 

  Installing : zlib-1.2.3-29.el6.i686                                                                                   22/66 

  Installing : libcom_err-1.41.12-22.el6.i686                                                                           23/66 

  Installing : zlib-devel-1.2.3-29.el6.x86_64                                                                           24/66 

  Installing : krb5-devel-1.10.3-57.el6.x86_64                                                                          25/66 

  Installing : libselinux-2.0.94-7.el6.i686                                                                             26/66 

  Installing : numactl-2.0.9-2.el6.i686                                                                                 27/66 

  Installing : keyutils-libs-1.4-5.el6.i686                                                                             28/66 

  Installing : krb5-libs-1.10.3-57.el6.i686                                                                             29/66 

  Installing : openssl-1.0.1e-48.el6_8.1.i686                                                                           30/66 

  Installing : libaio-0.3.107-10.el6.i686                                                                               31/66 

  Installing : libgcc-4.4.7-17.el6.i686                                                                                 32/66 

  Installing : libaio-devel-0.3.107-10.el6.i686                                                                         33/66 

  Installing : openssl-devel-1.0.1e-48.el6_8.1.i686                                                                     34/66 

  Installing : numactl-devel-2.0.9-2.el6.i686                                                                           35/66 

  Updating   : glibc-devel-2.12-1.192.el6.x86_64                                                                        36/66 

  Updating   : e2fsprogs-1.41.12-22.el6.x86_64                                                                          37/66 

  Updating   : libselinux-python-2.0.94-7.el6.x86_64                                                                    38/66 

  Updating   : libselinux-utils-2.0.94-7.el6.x86_64                                                                     39/66 

  Updating   : ncurses-libs-5.7-4.20090207.el6.x86_64                                                                   40/66 

  Updating   : libstdc++-4.4.7-17.el6.x86_64                                                                            41/66 

  Installing : libstdc++-4.4.7-17.el6.i686                                                                              42/66 

  Installing : libstdc++-devel-4.4.7-17.el6.i686                                                                        43/66 

  Installing : openssl098e-0.9.8e-20.el6.centos.1.i686                                                                  44/66 

  Installing : ncurses-libs-5.7-4.20090207.el6.i686                                                                     45/66 

  Cleanup    : glibc-devel-2.12-1.132.el6.x86_64                                                                        46/66 

  Cleanup    : e2fsprogs-1.41.12-18.el6.x86_64                                                                          47/66 

  Cleanup    : openssl-1.0.1e-15.el6.x86_64                                                                             48/66 

  Cleanup    : krb5-libs-1.10.3-10.el6_4.6.x86_64                                                                       49/66 

  Cleanup    : e2fsprogs-libs-1.41.12-18.el6.x86_64                                                                     50/66 

  Cleanup    : libss-1.41.12-18.el6.x86_64                                                                              51/66 

  Cleanup    : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64                                                               52/66 

  Cleanup    : libselinux-python-2.0.94-5.3.el6_4.1.x86_64                                                              53/66 

  Cleanup    : libstdc++-4.4.7-4.el6.x86_64                                                                             54/66 

  Cleanup    : ncurses-libs-5.7-3.20090208.el6.x86_64                                                                   55/66 

  Cleanup    : glibc-headers-2.12-1.132.el6.x86_64                                                                      56/66 

  Cleanup    : libselinux-2.0.94-5.3.el6_4.1.x86_64                                                                     57/66 

  Cleanup    : libcom_err-1.41.12-18.el6.x86_64                                                                         58/66 

  Cleanup    : keyutils-libs-1.4-4.el6.x86_64                                                                           59/66 

  Cleanup    : numactl-2.0.7-8.el6.x86_64                                                                               60/66 

  Cleanup    : ncurses-base-5.7-3.20090208.el6.x86_64                                                                   61/66 

  Cleanup    : glibc-common-2.12-1.132.el6.x86_64                                                                       62/66 

  Cleanup    : nss-softokn-freebl-3.14.3-9.el6.x86_64                                                                   63/66 

  Cleanup    : glibc-2.12-1.132.el6.x86_64                                                                              64/66 

  Cleanup    : tzdata-2013g-1.el6.noarch                                                                                65/66 

  Cleanup    : libgcc-4.4.7-4.el6.x86_64                                                                                66/66 

  Verifying  : keyutils-libs-1.4-5.el6.x86_64                                                                            1/66 

  Verifying  : numactl-2.0.9-2.el6.x86_64                                                                                2/66 

  Verifying  : ncurses-libs-5.7-4.20090207.el6.x86_64                                                                    3/66 

  Verifying  : glibc-2.12-1.192.el6.x86_64                                                                               4/66 

  Verifying  : libsepol-devel-2.0.41-4.el6.x86_64                                                                        5/66 

  Verifying  : libstdc++-4.4.7-17.el6.x86_64                                                                             6/66 

  Verifying  : openssl-devel-1.0.1e-48.el6_8.1.i686                                                                      7/66 

  Verifying  : libselinux-2.0.94-7.el6.i686                                                                              8/66 

  Verifying  : numactl-devel-2.0.9-2.el6.i686                                                                            9/66 

  Verifying  : libss-1.41.12-22.el6.x86_64                                                                              10/66 

  Verifying  : zlib-1.2.3-29.el6.i686                                                                                   11/66 

  Verifying  : libgcc-4.4.7-17.el6.i686                                                                                 12/66 

  Verifying  : glibc-2.12-1.192.el6.i686                                                                                13/66 

  Verifying  : tzdata-2016d-1.el6.noarch                                                                                14/66 

  Verifying  : ncurses-base-5.7-4.20090207.el6.x86_64                                                                   15/66 

  Verifying  : glibc-common-2.12-1.192.el6.x86_64                                                                       16/66 

  Verifying  : openssl098e-0.9.8e-20.el6.centos.1.i686                                                                  17/66 

  Verifying  : libstdc++-4.4.7-17.el6.i686                                                                              18/66 

  Verifying  : krb5-devel-1.10.3-57.el6.x86_64                                                                          19/66 

  Verifying  : libaio-devel-0.3.107-10.el6.i686                                                                         20/66 

  Verifying  : libselinux-devel-2.0.94-7.el6.x86_64                                                                     21/66 

  Verifying  : nss-softokn-freebl-3.14.3-23.el6_7.i686                                                                  22/66 

  Verifying  : glibc-devel-2.12-1.192.el6.x86_64                                                                        23/66 

  Verifying  : libstdc++-devel-4.4.7-17.el6.i686                                                                        24/66 

  Verifying  : nss-softokn-freebl-3.14.3-23.el6_7.x86_64                                                                25/66 

  Verifying  : libcom_err-devel-1.41.12-22.el6.x86_64                                                                   26/66 

  Verifying  : libgcc-4.4.7-17.el6.x86_64                                                                               27/66 

  Verifying  : numactl-2.0.9-2.el6.i686                                                                                 28/66 

  Verifying  : zlib-devel-1.2.3-29.el6.x86_64                                                                           29/66 

  Verifying  : keyutils-libs-devel-1.4-5.el6.x86_64                                                                     30/66 

  Verifying  : keyutils-libs-1.4-5.el6.i686                                                                             31/66 

  Verifying  : e2fsprogs-1.41.12-22.el6.x86_64                                                                          32/66 

  Verifying  : openssl-1.0.1e-48.el6_8.1.i686                                                                           33/66 

  Verifying  : krb5-libs-1.10.3-57.el6.i686                                                                             34/66 

  Verifying  : openssl-1.0.1e-48.el6_8.1.x86_64                                                                         35/66 

  Verifying  : libselinux-python-2.0.94-7.el6.x86_64                                                                    36/66 

  Verifying  : glibc-headers-2.12-1.192.el6.x86_64                                                                      37/66 

  Verifying  : libselinux-utils-2.0.94-7.el6.x86_64                                                                     38/66 

  Verifying  : ncurses-libs-5.7-4.20090207.el6.i686                                                                     39/66 

  Verifying  : libselinux-2.0.94-7.el6.x86_64                                                                           40/66 

  Verifying  : libcom_err-1.41.12-22.el6.x86_64                                                                         41/66 

  Verifying  : libaio-0.3.107-10.el6.i686                                                                               42/66 

  Verifying  : libcom_err-1.41.12-22.el6.i686                                                                           43/66 

  Verifying  : krb5-libs-1.10.3-57.el6.x86_64                                                                           44/66 

  Verifying  : e2fsprogs-libs-1.41.12-22.el6.x86_64                                                                     45/66 

  Verifying  : libselinux-python-2.0.94-5.3.el6_4.1.x86_64                                                              46/66 

  Verifying  : e2fsprogs-1.41.12-18.el6.x86_64                                                                          47/66 

  Verifying  : glibc-2.12-1.132.el6.x86_64                                                                              48/66 

  Verifying  : glibc-devel-2.12-1.132.el6.x86_64                                                                        49/66 

  Verifying  : openssl-1.0.1e-15.el6.x86_64                                                                             50/66 

  Verifying  : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64                                                               51/66 

  Verifying  : ncurses-base-5.7-3.20090208.el6.x86_64                                                                   52/66 

  Verifying  : libss-1.41.12-18.el6.x86_64                                                                              53/66 

  Verifying  : glibc-headers-2.12-1.132.el6.x86_64                                                                      54/66 

  Verifying  : ncurses-libs-5.7-3.20090208.el6.x86_64                                                                   55/66 

  Verifying  : glibc-common-2.12-1.132.el6.x86_64                                                                       56/66 

  Verifying  : libstdc++-4.4.7-4.el6.x86_64                                                                             57/66 

  Verifying  : libcom_err-1.41.12-18.el6.x86_64                                                                         58/66 

  Verifying  : krb5-libs-1.10.3-10.el6_4.6.x86_64                                                                       59/66 

  Verifying  : libselinux-2.0.94-5.3.el6_4.1.x86_64                                                                     60/66 

  Verifying  : numactl-2.0.7-8.el6.x86_64                                                                               61/66 

  Verifying  : keyutils-libs-1.4-4.el6.x86_64                                                                           62/66 

  Verifying  : nss-softokn-freebl-3.14.3-9.el6.x86_64                                                                   63/66 

  Verifying  : e2fsprogs-libs-1.41.12-18.el6.x86_64                                                                     64/66 

  Verifying  : tzdata-2013g-1.el6.noarch                                                                                65/66 

  Verifying  : libgcc-4.4.7-4.el6.x86_64                                                                                66/66 


Installed:

  libaio.i686 0:0.3.107-10.el6            libaio-devel.i686 0:0.3.107-10.el6         libgcc.i686 0:4.4.7-17.el6             

  libstdc++.i686 0:4.4.7-17.el6           libstdc++-devel.i686 0:4.4.7-17.el6        ncurses-libs.i686 0:5.7-4.20090207.el6 

  numactl.i686 0:2.0.9-2.el6              numactl-devel.i686 0:2.0.9-2.el6           openssl.i686 0:1.0.1e-48.el6_8.1       

  openssl-devel.i686 0:1.0.1e-48.el6_8.1  openssl098e.i686 0:0.9.8e-20.el6.centos.1 


Dependency Installed:

  glibc.i686 0:2.12-1.192.el6               keyutils-libs.i686 0:1.4-5.el6             keyutils-libs-devel.x86_64 0:1.4-5.el6 

  krb5-devel.x86_64 0:1.10.3-57.el6         krb5-libs.i686 0:1.10.3-57.el6             libcom_err.i686 0:1.41.12-22.el6       

  libcom_err-devel.x86_64 0:1.41.12-22.el6  libselinux.i686 0:2.0.94-7.el6             libselinux-devel.x86_64 0:2.0.94-7.el6 

  libsepol-devel.x86_64 0:2.0.41-4.el6      nss-softokn-freebl.i686 0:3.14.3-23.el6_7  zlib.i686 0:1.2.3-29.el6               

  zlib-devel.x86_64 0:1.2.3-29.el6         


Updated:

  glibc.x86_64 0:2.12-1.192.el6                  libgcc.x86_64 0:4.4.7-17.el6       libstdc++.x86_64 0:4.4.7-17.el6         

  ncurses-libs.x86_64 0:5.7-4.20090207.el6       numactl.x86_64 0:2.0.9-2.el6       openssl.x86_64 0:1.0.1e-48.el6_8.1      


Dependency Updated:

  e2fsprogs.x86_64 0:1.41.12-22.el6         e2fsprogs-libs.x86_64 0:1.41.12-22.el6       glibc-common.x86_64 0:2.12-1.192.el6 

  glibc-devel.x86_64 0:2.12-1.192.el6       glibc-headers.x86_64 0:2.12-1.192.el6        keyutils-libs.x86_64 0:1.4-5.el6     

  krb5-libs.x86_64 0:1.10.3-57.el6          libcom_err.x86_64 0:1.41.12-22.el6           libselinux.x86_64 0:2.0.94-7.el6     

  libselinux-python.x86_64 0:2.0.94-7.el6   libselinux-utils.x86_64 0:2.0.94-7.el6       libss.x86_64 0:1.41.12-22.el6        

  ncurses-base.x86_64 0:5.7-4.20090207.el6  nss-softokn-freebl.x86_64 0:3.14.3-23.el6_7  tzdata.noarch 0:2016d-1.el6          


Complete!

[root@localhost rpm]# 

[root@localhost rpm]# rpm -Uvh mysql-community-common-5.7.13-1.el6.i686.rpm

warning: mysql-community-common-5.7.13-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

   1:mysql-community-common ########################################### [100%]

[root@localhost rpm]# rpm -Uvh mysql-community-libs-5.7.13-1.el6.i686.rpm

warning: mysql-community-libs-5.7.13-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

   1:mysql-community-libs   ########################################### [100%]

[root@localhost rpm]# rpm -Uvh mysql-community-libs-compat-5.7.13-1.el6.i686.rpm

warning: mysql-community-libs-compat-5.7.13-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

   1:mysql-community-libs-co########################################### [100%]

[root@localhost rpm]# rpm -Uvh mysql-community-devel-5.7.13-1.el6.i686.rpm

warning: mysql-community-devel-5.7.13-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

   1:mysql-community-devel  ########################################### [100%]

[root@localhost rpm]# rpm -Uvh mysql-community-embedded-5.7.13-1.el6.i686.rpm

warning: mysql-community-embedded-5.7.13-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

   1:mysql-community-embedde########################################### [100%]

[root@localhost rpm]# rpm -Uvh mysql-community-embedded-devel-5.7.13-1.el6.i686.rpm

warning: mysql-community-embedded-devel-5.7.13-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

   1:mysql-community-embedde########################################### [100%]

[root@localhost rpm]# rpm -Uvh mysql-community-client-5.7.13-1.el6.i686.rpm

warning: mysql-community-client-5.7.13-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

   1:mysql-community-client ########################################### [100%]

[root@localhost rpm]# rpm -Uvh mysql-community-server-5.7.13-1.el6.i686.rpm

warning: mysql-community-server-5.7.13-1.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

   1:mysql-community-server ########################################### [100%]

[root@localhost rpm]# 

[root@localhost rpm]# service mysqld start

Initializing MySQL database:                               [  OK  ]

Installing validate password plugin:                       [  OK  ]

Starting mysqld:                                           [  OK  ]

[root@localhost rpm]# 

[root@localhost rpm]# date

Wed Jun  8 16:45:22 PDT 2016 


Wed Jun  8 16:42:19 PDT 2016 시작

Wed Jun  8 16:45:22 PDT 2016 종료

약 3분 정도 걸렸다


나머지 셋팅을 해주도록 하자


임시 패스워드 확인

[root@localhost rpm]# cat /var/log/mysqld.log |grep temporary

2016-06-08T23:45:15.812121Z 1 [Note] A temporary password is generated for root@localhost: NjwWPk+IZ3p)

2016-06-08T23:45:19.027386Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables

2016-06-08T23:45:20.974239Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"

2016-06-08T23:45:22.095931Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables 


임시패스워드로 접속

[root@localhost rpm]# mysql -uroot -p'NjwWPk+IZ3p)'

mysql: [Warning] Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 3

Server version: 5.7.13


Copyright (c) 2000, 2016, 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> alter user 'root'@'localhost' identified by 'Root!234';

Query OK, 0 rows affected (0.02 sec)


mysql> quit

Bye

[root@localhost rpm]# mysql -uroot -p'Root!234'

mysql: [Warning] Using a password on the command line interface can be insecure.

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 4

Server version: 5.7.13 MySQL Community Server (GPL)


Copyright (c) 2000, 2016, 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> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| mysql              |

| performance_schema |

| sys                |

+--------------------+

4 rows in set (0.02 sec)


root 패스워드 변경 후 새 유저 생성


mysql> create user 'opendatab'@'%' identified by 'Opendatabase1!';

Query OK, 0 rows affected (0.00 sec)


mysql> 

mysql> grant all privileges on *.* to 'opendatab'@'%';

Query OK, 0 rows affected (0.00 sec)


mysql> select user, host from mysql.user;

+-----------+-----------+

| user      | host      |

+-----------+-----------+

| opendatab | %         |

| mysql.sys | localhost |

| root      | localhost |

+-----------+-----------+

3 rows in set (0.00 sec)


mysql> 



"이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다."