查看当前的mysql yum源
[admin@AS104 home]$ yum list | grep mysql
mysql-libs.x86_64 5.1.73-8.el6_8 @anaconda-CentOS-201703281317.x86_64/6.9
apr-util-mysql.x86_64 1.3.9-3.el6_0.1 base
bacula-director-mysql.x86_64 5.0.0-13.el6 base
bacula-storage-mysql.x86_64 5.0.0-13.el6 base
dovecot-mysql.x86_64 1:2.0.9-22.el6 base
freeradius-mysql.x86_64 2.2.6-6.el6_7 base
libdbi-dbd-mysql.x86_64 0.8.3-5.1.el6 base
mod_auth_mysql.x86_64 1:3.0.0-11.el6_0.1 base
mysql.x86_64 5.1.73-8.el6_8 base
mysql-bench.x86_64 5.1.73-8.el6_8 base
mysql-connector-java.noarch 1:5.1.17-6.el6 base
mysql-connector-odbc.x86_64 5.1.5r1144-7.el6 base
mysql-devel.i686 5.1.73-8.el6_8 base
mysql-devel.x86_64 5.1.73-8.el6_8 base
mysql-embedded.i686 5.1.73-8.el6_8 base
mysql-embedded.x86_64 5.1.73-8.el6_8 base
mysql-embedded-devel.i686 5.1.73-8.el6_8 base
mysql-embedded-devel.x86_64 5.1.73-8.el6_8 base
mysql-libs.i686 5.1.73-8.el6_8 base
mysql-server.x86_64 5.1.73-8.el6_8 base
mysql-test.x86_64 5.1.73-8.el6_8 base
pcp-pmda-mysql.x86_64 3.10.9-9.el6 base
php-mysql.x86_64 5.3.3-49.el6 base
qt-mysql.i686 1:4.6.2-28.el6_5 base
qt-mysql.x86_64 1:4.6.2-28.el6_5 base
rsyslog-mysql.x86_64 5.8.10-10.el6_6 base
rsyslog7-mysql.x86_64 7.4.10-7.el6 base
[admin@AS104 home]$ pwd
引入mysql 5.6的yum的数据源
[admin@AS104 home]$ wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
--2017-06-20 14:47:47-- http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
Resolving repo.mysql.com... 69.192.245.30
Connecting to repo.mysql.com|69.192.245.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5824 (5.7K) [application/x-redhat-package-manager]
mysql-community-release-el6-5.noarch.rpm: Permission denied
Cannot write to “mysql-community-release-el6-5.noarch.rpm” (Permission denied).
[admin@AS104 home]$ sudo wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
--2017-06-20 14:47:54-- http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
Resolving repo.mysql.com... 69.192.245.30
Connecting to repo.mysql.com|69.192.245.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5824 (5.7K) [application/x-redhat-package-manager]
Saving to: “mysql-community-release-el6-5.noarch.rpm”
100%[=====================================================================>] 5,824 --.-K/s in 0s
2017-06-20 14:47:55 (50.8 MB/s) - “mysql-community-release-el6-5.noarch.rpm” saved [5824/5824]
[admin@AS104 home]$ rpm -ivh mysql-community-release-el6-5.noarch.rpm
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
[admin@AS104 home]$ sudo rpm -ivh mysql-community-release-el6-5.noarch.rpm
Preparing... ########################################### [100%]
1:mysql-community-release########################################### [100%]
[admin@AS104 home]$ yum list | grep mysql
mysql-community-release.noarch el6-5 installed
apr-util-mysql.x86_64 1.3.9-3.el6_0.1 base
bacula-director-mysql.x86_64 5.0.0-13.el6 base
bacula-storage-mysql.x86_64 5.0.0-13.el6 base
dovecot-mysql.x86_64 1:2.0.9-22.el6 base
freeradius-mysql.x86_64 2.2.6-6.el6_7 base
libdbi-dbd-mysql.x86_64 0.8.3-5.1.el6 base
mod_auth_mysql.x86_64 1:3.0.0-11.el6_0.1 base
mysql.x86_64 5.1.73-8.el6_8 base
mysql-bench.x86_64 5.1.73-8.el6_8 base
mysql-community-bench.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-client.i686 5.6.36-2.el6 mysql56-community
mysql-community-client.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-common.i686 5.6.36-2.el6 mysql56-community
mysql-community-common.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-devel.i686 5.6.36-2.el6 mysql56-community
mysql-community-devel.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-embedded.i686 5.6.36-2.el6 mysql56-community
mysql-community-embedded.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-embedded-devel.i686 5.6.36-2.el6 mysql56-community
mysql-community-embedded-devel.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-libs.i686 5.6.36-2.el6 mysql56-community
mysql-community-libs.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-libs-compat.i686 5.6.36-2.el6 mysql56-community
mysql-community-libs-compat.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-server.x86_64 5.6.36-2.el6 mysql56-community
mysql-community-test.x86_64 5.6.36-2.el6 mysql56-community
mysql-connector-java.noarch 1:5.1.17-6.el6 base
mysql-connector-odbc.x86_64 5.3.8-1.el6 mysql-connectors-community
mysql-connector-odbc-debuginfo.x86_64 5.3.8-1.el6 mysql-connectors-community
mysql-connector-odbc-setup.x86_64 5.3.8-1.el6 mysql-connectors-community
mysql-connector-python.noarch 2.0.4-1.el6 mysql-connectors-community
mysql-connector-python.x86_64 2.1.6-1.el6 mysql-connectors-community
mysql-connector-python-cext.x86_64 2.1.6-1.el6 mysql-connectors-community
mysql-connector-python-debuginfo.x86_64 2.1.6-1.el6 mysql-connectors-community
mysql-devel.i686 5.1.73-8.el6_8 base
mysql-devel.x86_64 5.1.73-8.el6_8 base
mysql-embedded.i686 5.1.73-8.el6_8 base
mysql-embedded.x86_64 5.1.73-8.el6_8 base
mysql-embedded-devel.i686 5.1.73-8.el6_8 base
mysql-embedded-devel.x86_64 5.1.73-8.el6_8 base
mysql-libs.i686 5.1.73-8.el6_8 base
mysql-libs.x86_64 5.1.73-8.el6_8 base
mysql-ref-manual-5.6-en-html-chapter.noarch 1-20170318 mysql56-community
mysql-ref-manual-5.6-en-pdf.noarch 1-20170318 mysql56-community
mysql-router.x86_64 2.1.3-1.el6 mysql-tools-community
mysql-router-debuginfo.x86_64 2.1.3-1.el6 mysql-tools-community
mysql-server.x86_64 5.1.73-8.el6_8 base
mysql-shell.x86_64 1.0.9-1.el6 mysql-tools-community
mysql-shell-debuginfo.x86_64 1.0.9-1.el6 mysql-tools-community
mysql-test.x86_64 5.1.73-8.el6_8 base
mysql-utilities.noarch 1.6.5-1.el6 mysql-tools-community
mysql-utilities-extra.noarch 1.5.6-1.el6 mysql-tools-community
mysql-workbench-community.x86_64 6.3.8-1.el6 mysql-tools-community
mysql-workbench-community-debuginfo.x86_64 6.3.8-1.el6 mysql-tools-community
pcp-pmda-mysql.x86_64 3.10.9-9.el6 base
php-mysql.x86_64 5.3.3-49.el6 base
qt-mysql.i686 1:4.6.2-28.el6_5 base
qt-mysql.x86_64 1:4.6.2-28.el6_5 base
rsyslog-mysql.x86_64 5.8.10-10.el6_6 base
rsyslog7-mysql.x86_64 7.4.10-7.el6 base
[admin@AS104 home]$
参考 具体安装流程!!
centos 6.5 yum安装mysql5.6
http://2860664.blog.51cto.com/2850664/1553642/

1055

被折叠的 条评论
为什么被折叠?



