【问题标题】:Centos 5.5 - upgrade Mysql to 5.1 and get it workingCentos 5.5 - 将 Mysql 升级到 5.1 并让它工作
【发布时间】:2011-03-11 18:09:58
【问题描述】:

我不是服务器管理员,但希望能帮助我。谢谢!

我有一个安装了 VirtualMin 的全新 CentOS 5.5。

我在启动 MySQL 时得到这个: 启动数据库失败: sh: /etc/rc.d/init.d/mysqld: 没有那个文件或目录

另外,我希望从 5.0 mysql 升级到 5.1 mysql。我已经用过这个命令了:

rpm -Uvh MySQL-shared-community-5.1.56-1.rhel5.i386.rpm

但在 Webmin 中,我的 MySQL 版本仍然显示为 mysql 5.0.77-4.el5_5.4,而不是升级 5.0 rpm,只是安装了 5.1。

如何升级到 5.1 并对其进行配置?非常感谢。

【问题讨论】:

    标签: mysql centos


    【解决方案1】:

    如果您已经安装了 mysql,请尝试将“--replacepkgs”参数与“rpm”命令一起使用。

    关于sh: /etc/rc.d/init.d/mysqld: No such file or directory,安装新的mysql后应该会修复。

    【讨论】:

    • rpm -Uvh --replacepkgs MySQL-shared-community-5.1.56-1.rhel5.i386.rpm 产生同样的不良结果
    • 好的。你能告诉你从rpm -qa | grep -i mysql 得到什么吗?输出是否包含新版本?
    • 输出包含两个版本[root@localhost ~]# rpm -qa | grep -i mysql MySQL-shared-community-5.1.56-1.rhel5 mysql-5.0.77-4.el5_5.4
    • 好的。新版本现已安装。我建议:1) 告诉我们你如何启动 mysql 2) 重新启动 linux 机器,3) 运行 set | grep -i mysql 以查看与 mysql 相关的环境变量,因为sh: /etc/rc.d/init.d/mysqld: No such file or directory 明确指出 mysql 不是你的脚本所期望的。
    • set | grep -i mysql 返回空白,什么都没有
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-18
    • 2018-07-02
    • 1970-01-01
    • 1970-01-01
    • 2012-03-10
    • 2014-05-14
    相关资源
    最近更新 更多