본문 바로가기
Develop/DB

[MySQL]MySQL 5.1 -> MySQL 5.6 업그레이드

by bellsilver7 2016. 9. 6.
728x90

01. 버전확인

mysql> select version();

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

| version() |

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

| 5.1.73    |

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


02. 설치된 MySQL 제거

[root@localhost ~]# service mysqld stop

[root@localhost ~]# yum remove mysql mysql-server*



03. MySQL 5.6 저장소 등록

[root@localhost ~]# wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

[root@localhost ~]# rpm -ivh mysql-community-release-el6-5.noarch.rpm

[root@localhost ~]# ls /etc/yum.repos.d/

CentOS-Base.repo CentOS-Media.repo mysql-community-source.repo

CentOS-Debuginfo.repo CentOS-Vault.repo mysql-community.repo



04. MySQL 설치

[root@localhost ~] # yum install mysql-server

[root@localhost ~]# mysql --version

mysql  Ver 14.14 Distrib 5.6.32, for Linux (x86_64) using  EditLine wrapper

728x90

댓글