美文网首页js css html
487/1000:在服务器中安装mysql踩的坑

487/1000:在服务器中安装mysql踩的坑

作者: 马幸运 | 来源:发表于2022-06-19 23:18 被阅读0次

    今天在linux服务器中安装mysql,最终安装成功了。这个过程中也踩过一些坑,现在做一些总结。
    在安装过程中遇到报错信息:
    Error: Package: 2:postfix-2.10.1-9.el7.x86_64 (@os)
    Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit)
    Removing: 1:mariadb-libs-5.5.68-1.el7.x86_64 (@os)
    libmysqlclient.so.18(libmysqlclient_18)(64bit)
    Obsoleted By: mysql-community-libs-5.7.38-1.el6.x86_64 (mysql57-community-dmr)
    Not found
    Error: Package: mysql-community-server-5.7.38-1.el6.x86_64 (mysql57-community-dmr)
    Requires: libsasl2.so.2()(64bit)
    Error: Package: 2:postfix-2.10.1-9.el7.x86_64 (@os)
    Requires: libmysqlclient.so.18()(64bit)
    Removing: 1:mariadb-libs-5.5.68-1.el7.x86_64 (@os)
    libmysqlclient.so.18()(64bit)
    Obsoleted By: mysql-community-libs-5.7.38-1.el6.x86_64 (mysql57-community-dmr)
    ~libmysqlclient.so.20()(64bit)
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    报错截图
    解决的命令:vim /etc/yum.repos.d/mysql-community.repo

    [mysql57-community-dmr]

    name=MySQL 5.7 Community Server Development Milestone Release

    baseurl=[http://repo.mysql.com/yum/mysql-5.7-community/el/7/basearch/](http://repo.mysql.com/yum/mysql-5.7-community/el/7/basearch/) # IDO老徐 注: el/6 -> el/7

    enabled=1

    gpgcheck=0 # IDO老徐注: 1 > 0
    gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
    修改完成后,再次执行命令安装mysql:** yum install mysql-community-server**


    安装成功

    简单总结一下:这个过程中报错的原因是,默认安装的mysql5.6版本,我想要安装的是5.7版本,配置信息没有修改导致的报错。还要谢谢对象的悉心指导,受益良多~~

    相关文章

      网友评论

        本文标题:487/1000:在服务器中安装mysql踩的坑

        本文链接:https://www.haomeiwen.com/subject/hgldvrtx.html