码迷,mamicode.com
首页 > 数据库 > 详细

(六)Linux CenOS6.5 安装mysql

时间:2017-10-31 15:26:05      阅读:374      评论:0      收藏:0      [点我收藏+]

标签:prim   3.2   解决   inux   32位   oid   problems   mysq   def   

1、首先下载mysql的客户端和服务端  https://dev.mysql.com/downloads/mysql/

2、安装命令     rpm -ivh MySQL-server-5.1.73-1.glibc23.i386.rpm

  此处可能会遇到问题:大概十多个报错

  libc.so.6(GLIBC_2.0)  is needed by MySQL-server-5.1.73-1.glibc23.i386

  libgcc_s.so.1 is needed by MySQL-server-5.1.73-1.glibc23.i386

百度了半天发现了一些信息

这里只摘录关键的几句话:

In Red Hat Enterprise Linux 5, if a package was available for both the main and the compatibility architectures, both architectures of the package were installed by default.In Red Hat Enterprise Linux 6, only the package for the primary architecture is installed by default.To avoid problems during the backup-archive client and API installation on a 64-bit machine, be sure to install libstdc++ and compat-libstdc++.

大意是说,从Red Hat Enterprise Linux 6开始,默认只安装主架构所需要的包,而不安装兼容架构的包,也就是说,64位系统默认只安装64位的软件包。为避免这种问题,在64位系统中,要同时安装64位的包和32位的兼容包。CentOS和从Red Hat Enterprise Linux 6的关系就不用我说了,因此我感觉这个回答比较靠谱,赶紧试试吧。

安装yum install libstdc++.i686          之后发现只剩一个报错

libgcc_s.so.1 is needed by MySQL-server-5.1.73-1.glibc23.i386

下载这个libgcc-4.4.7-18.el6.i686.rpm   

 安装rpm -ivh libgcc-4.4.7-18.el6.i686.rpm 

之后再安装 rpm -ivh MySQL-server-5.1.73-1.glibc23.i386.rpm

没有问题,成功安装

3、安装客户端rpm -ivh MySQL-client-5.1.73-1.glibc23.i386.rpm

又遇到问题 libncursesw.so.5 is needed by MySQL-client-5.1.73-1.glibc23.i386

解决方法:  yum list | grep ncurses   

ncurses.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5
ncurses-base.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5
ncurses-libs.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5
ncurses-devel.i686 5.7-3.20090208.el6 c6-media
ncurses-devel.x86_64 5.7-3.20090208.el6 c6-media
ncurses-libs.i686 5.7-3.20090208.el6 c6-media
ncurses-static.x86_64 5.7-3.20090208.el6 c6-media
ncurses-term.x86_64 5.7-3.20090208.el6 c6-media

安装  yum install ncurses-libs.i686

之后成功安装客户端rpm -ivh MySQL-client-5.1.73-1.glibc23.i386.rpm     

 

(六)Linux CenOS6.5 安装mysql

标签:prim   3.2   解决   inux   32位   oid   problems   mysq   def   

原文地址:http://www.cnblogs.com/lp0636/p/7761653.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!