CentOS 5.5 upgrade mysql 5.0 to 5.6

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

CentOS 5.5 upgrade mysql 5.0 to 5.6

文章 yehlu »

代碼: 選擇全部

yum remvoe mysql*
http://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

代碼: 選擇全部

[root@centos55 ~]# wget http://dev.mysql.com/get/mysql-community-release-el5-5.noarch.rpm
--2014-08-01 17:08:15--  http://dev.mysql.com/get/mysql-community-release-el5-5.noarch.rpm
正在查找主機 dev.mysql.com... 137.254.60.11
正在連接 dev.mysql.com|137.254.60.11|:80... 連上了。
已送出 HTTP 要求,正在等候回應... 302 Found
位置: http://repo.mysql.com/mysql-community-release-el5-5.noarch.rpm [跟隨至新的 URL]
--2014-08-01 17:08:16--  http://repo.mysql.com/mysql-community-release-el5-5.noarch.rpm
正在查找主機 repo.mysql.com... 23.53.72.96
正在連接 repo.mysql.com|23.53.72.96|:80... 連上了。
已送出 HTTP 要求,正在等候回應... 200 OK
長度: 5545 (5.4K) [application/x-redhat-package-manager]
Saving to: `mysql-community-release-el5-5.noarch.rpm'

100%[============================================>] 5,545       --.-K/s   in 0s

2014-08-01 17:08:16 (176 MB/s) -- 已儲存 ‘mysql-community-release-el5-5.noarch.rpm’ [5545/5545])

[root@centos55 ~]# rpm -i mysql-community-release-el5-5.noarch.rpm
[root@centos55 ~]# ls
5.5  anaconda-ks.cfg  install.log         mysql-community-release-el5-5.noarch.rpm
5.6  clk.sql          install.log.syslog
[root@centos55 ~]# yum repolist all | grep mysql
mysql-connectors-community        MySQL Connectors Community      enabled:     4
mysql-connectors-community-source MySQL Connectors Community - So disabled
mysql56-community                 MySQL 5.6 Community Server      enabled:    88
mysql56-community-source          MySQL 5.6 Community Server - So disabled
mysql57-community-dmr             MySQL 5.7 Community Server Deve disabled
mysql57-community-dmr-source      MySQL 5.7 Community Server Deve disabled
[root@centos55 ~]# yum repolist enabled | grep mysql
mysql-connectors-community    MySQL Connectors Community          enabled:     4
mysql56-community             MySQL 5.6 Community Server          enabled:    88
[root@centos55 ~]# sudo yum install mysql-community-server
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * addons: ftp.tc.edu.tw
 * base: ftp.tc.edu.tw
 * extras: ftp.tc.edu.tw
 * updates: ftp.tc.edu.tw
 * webtatic-el5: nl.repo.webtatic.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.20-4.el5 set to be updated
--> Processing Dependency: mysql-community-common = 5.6.20-4.el5 for package: mysql-community-server
--> Processing Dependency: mysql-community-client = 5.6.20-4.el5 for package: mysql-community-server
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.20-4.el5 set to be updated
--> Processing Dependency: mysql-community-libs = 5.6.20-4.el5 for package: mysql-community-client
---> Package mysql-community-common.x86_64 0:5.6.20-4.el5 set to be updated
--> Processing Dependency: mysql = 5.6.20-4.el5 for package: mysql-community-common
--> Running transaction check
---> Package mysql.x86_64 0:5.6.20-4.el5 set to be updated
--> Processing Dependency: mysql-community-libs-compat = 5.6.20-4.el5 for package: mysql
---> Package mysql-community-libs.x86_64 0:5.6.20-4.el5 set to be updated
--> Running transaction check
---> Package mysql-community-libs-compat.x86_64 0:5.6.20-4.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================
 Package                        Arch      Version          Repository            Size
======================================================================================
Installing:
 mysql-community-server         x86_64    5.6.20-4.el5     mysql56-community     83 M
Installing for dependencies:
 mysql                          x86_64    5.6.20-4.el5     mysql56-community     38 k
 mysql-community-client         x86_64    5.6.20-4.el5     mysql56-community     22 M
 mysql-community-common         x86_64    5.6.20-4.el5     mysql56-community    679 k
 mysql-community-libs           x86_64    5.6.20-4.el5     mysql56-community    2.3 M
 mysql-community-libs-compat    x86_64    5.6.20-4.el5     mysql56-community    2.1 M

Transaction Summary
======================================================================================
Install       6 Package(s)
Upgrade       0 Package(s)

Total download size: 110 M
Is this ok [y/N]: Y
Downloading Packages:
(1/6): mysql-5.6.20-4.el5.x86_64.rpm                           |  38 kB     00:00
(2/6): mysql-community-common-5.6.20-4.el5.x86_64.rpm          | 679 kB     00:01
(3/6): mysql-community-libs-compat-5.6.20-4.el5.x86_64.rpm     | 2.1 MB     00:01
(4/6): mysql-community-libs-5.6.20-4.el5.x86_64.rpm            | 2.3 MB     00:01
(5/6): mysql-community-client-5.6.20-4.el5.x86_64.rpm          |  22 MB     00:03
(6/6): mysql-community-server-5.6.20-4.el5.x86_64.rpm          |  83 MB     00:58
--------------------------------------------------------------------------------------
Total                                                 1.6 MB/s | 110 MB     01:09
警告:rpmts_HdrFromFdno: V3 DSA 簽名:NOKEY, key ID 5072e1f5
mysql56-community/gpgkey                                       | 2.1 kB     00:00
Importing GPG key 0x5072E1F5 "MySQL Release Engineering <mysql-build@oss.oracle.com>" from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Is this ok [y/N]: Y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mysql-community-libs                                           1/6
  Installing     : mysql-community-client                                         2/6
  Installing     : mysql-community-common                                         3/6
  Installing     : mysql                                                          4/6
  Installing     : mysql-community-libs-compat                                    5/6
  Installing     : mysql-community-server                                         6/6

Installed:
  mysql-community-server.x86_64 0:5.6.20-4.el5

Dependency Installed:
  mysql.x86_64 0:5.6.20-4.el5
  mysql-community-client.x86_64 0:5.6.20-4.el5
  mysql-community-common.x86_64 0:5.6.20-4.el5
  mysql-community-libs.x86_64 0:5.6.20-4.el5
  mysql-community-libs-compat.x86_64 0:5.6.20-4.el5

Complete!

回覆文章

回到「CentOS」