如何在Red Hat 6.1上安装MySql?

如何在Red Hat 6.1上安装MySql?

MySQL-server-5.6.12-1.el6.i686.rpm我正在尝试在 Red Hat Enterprise 6.1 服务器上安装。

我收到以下错误:

rpm -Uvh MySQL-server-5.6.12-1.el6.i686.rpm
error: Failed dependencies:
        libaio.so.1 is needed by MySQL-server-5.6.12-1.el6.i686
        libaio.so.1(LIBAIO_0.1) is needed by MySQL-server-5.6.12-1.el6.i686
        libaio.so.1(LIBAIO_0.4) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6 is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.0) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.1) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.1.2) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.1.3) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.10) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.2) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.2.3) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.3) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.3.3) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.3.4) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.4) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.7) is needed by MySQL-server-5.6.12-1.el6.i686
        libc.so.6(GLIBC_2.8) is needed by MySQL-server-5.6.12-1.el6.i686
        libcrypt.so.1 is needed by MySQL-server-5.6.12-1.el6.i686
        libcrypt.so.1(GLIBC_2.0) is needed by MySQL-server-5.6.12-1.el6.i686
        libdl.so.2 is needed by MySQL-server-5.6.12-1.el6.i686
        libdl.so.2(GLIBC_2.0) is needed by MySQL-server-5.6.12-1.el6.i686
        libdl.so.2(GLIBC_2.1) is needed by MySQL-server-5.6.12-1.el6.i686
        libgcc_s.so.1 is needed by MySQL-server-5.6.12-1.el6.i686
        libgcc_s.so.1(GCC_3.0) is needed by MySQL-server-5.6.12-1.el6.i686
        libgcc_s.so.1(GLIBC_2.0) is needed by MySQL-server-5.6.12-1.el6.i686
        libm.so.6 is needed by MySQL-server-5.6.12-1.el6.i686
        libm.so.6(GLIBC_2.0) is needed by MySQL-server-5.6.12-1.el6.i686
        libm.so.6(GLIBC_2.1) is needed by MySQL-server-5.6.12-1.el6.i686
        libpthread.so.0 is needed by MySQL-server-5.6.12-1.el6.i686
        libpthread.so.0(GLIBC_2.0) is needed by MySQL-server-5.6.12-1.el6.i686
        libpthread.so.0(GLIBC_2.1) is needed by MySQL-server-5.6.12-1.el6.i686
        libpthread.so.0(GLIBC_2.2) is needed by MySQL-server-5.6.12-1.el6.i686
        libpthread.so.0(GLIBC_2.3.2) is needed by MySQL-server-5.6.12-1.el6.i686
        librt.so.1 is needed by MySQL-server-5.6.12-1.el6.i686
        librt.so.1(GLIBC_2.2) is needed by MySQL-server-5.6.12-1.el6.i686
        libstdc++.so.6 is needed by MySQL-server-5.6.12-1.el6.i686
        libstdc++.so.6(CXXABI_1.3) is needed by MySQL-server-5.6.12-1.el6.i686
        libstdc++.so.6(GLIBCXX_3.4) is needed by MySQL-server-5.6.12-1.el6.i686
        libstdc++.so.6(GLIBCXX_3.4.11) is needed by MySQL-server-5.6.12-1.el6.i686

我认识到这些是我需要安装的程序。我的问题是我应该在哪里下载这些程序来安装,还是应该寻找旧版本的 MySQL?

编辑: 归根结底其实是系统架构的问题。在 Linux 中安装组件时应始终牢记系统架构。我使用的是 i686 rpm,当时它是 x86_x64 系统

答案1

您可以使用 YUM 代表更新 MySQL 版本,如下所示:http://www.webtatic.com/packages/mysql55/

答案2

强烈建议使用您的发行版附带的软件包。 RHEL 6.1 附带 5.1.52,您应该使用它。

实际上 - 您应该考虑将机器更新到更高的水平。

相关内容