How to upgrade MySQL 5.1 to 5.7
업데이트
With mysql57-community-dmr installed, Conflict error occurs like
yum install http://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm
Setting up Install Process
mysql57-community-release-el6-11.noarch.rpm | 25 kB 00:00
Examining /var/tmp/yum-root-dWCjk3/mysql57-community-release-el6-11.noarch.rpm: mysql57-community-release-el6-11.noarch
Marking /var/tmp/yum-root-dWCjk3/mysql57-community-release-el6-11.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el6-11 will be installed
--> Processing Conflict: mysql57-community-release-el6-11.noarch conflicts mysql-community-release
No package matched to upgrade: mysql57-community-release
--> Finished Dependency Resolution
Error: mysql57-community-release conflicts with mysql-community-release-el6-7.noarch
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
yum-config-manager --disable mysql57-community-dmr
yum remove mysql-community-release-el6-7.noarch
yum install http://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm
yum-config-manager --enable mysql57-community
배경
Plan
Preliminary
【심플】 CentOS6에 MySQL5.7을 yum으로 간단하게 설치하는 순서
htp : // bg. y보. 네 t/2015/03/11/호 w--인 s 탓 lmysql5-7-와 - s6-우신 g-유 m/
Steps - How to upgrade
환경
/etc/issue
CentOS release 6.7 (Final)
yum repository for CentOS 6.x
yum install http://dev.mysql.com/get/mysql-community-release-el6-11.noarch.rpm
shutdown MySQL 5.1 for upgrade
mysql -u root -ppassword --execute="set global innodb_fast_shutdown=0"
mysqladmin -u root -ppassword shutdown
upgrade to MySQL 5.5
yum-config-manager --disable mysql56-community
yum-config-manager --enable mysql55-community
yum update mysql mysql-devel mysql-server mysql-utilities
mysqld_safe && mysql_upgrade - 5.5
mysqld_safe
mysql_upgrade -u root -ppassword
service mysqld stop
upgrade to MySQL 5.6
yum-config-manager --disable mysql55-community
yum-config-manager --enable mysql56-community
yum update mysql mysql-devel mysql-server mysql-utilities
mysqld_safe && mysql_upgrade - 5.6
mysqld_safe
mysql_upgrade -u root -ppassword
service mysqld stop
upgrade to MySQL 5.7
yum-config-manager --disable mysql56-community
yum-config-manager --enable mysql57-community
yum update mysql mysql-devel mysql-server mysql-utilities
mysqld_safe && mysql_upgrade - 5.7
mysqld_safe
mysql_upgrade -u root -ppassword
service mysqld stop
Fin
mysql --version
mysql Ver 14.14 Distrib 5.7.12, for Linux (x86_64)
Done
Reference
이 문제에 관하여(How to upgrade MySQL 5.1 to 5.7), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/tkprof/items/fdc30b45d2efd250f274텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)