zoukankan      html  css  js  c++  java
  • 在CentOS7上安装MySQL5.7-YUM源方式

    获取RPM包

    # wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm

    列出RPM包里都有哪些文件

    # rpm -qpl mysql57-community-release-el7-11.noarch.rpm
    /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
    /etc/yum.repos.d/mysql-community-source.repo
    /etc/yum.repos.d/mysql-community.repo

    安装

    # rpm -ivh mysql57-community-release-el7-11.noarch.rpm --nosignature
    准备中...                          ################################# [100%]
        软件包 mysql57-community-release-el7-11.noarch 已经安装
    # yum localinstall mysql57-community-release-el7-11.noarch.rpm

    # yum repolist enabled | grep "mysql.*-community.*"
    mysql-connectors-community/x86_64        MySQL Connectors Community          48
    mysql-tools-community/x86_64             MySQL Tools Community               63
    mysql57-community/x86_64                 MySQL 5.7 Community Server         267

    # yum install mysql-community-server

    错误:软件包:akonadi-mysql-1.9.2-4.el7.x86_64 (@anaconda/7.0)
              需要:mariadb-server
              正在删除: 1:mariadb-server-5.5.35-3.el7.x86_64 (@anaconda/7.0)
                  mariadb-server = 1:5.5.35-3.el7
              取代,由: mysql-community-server-5.7.22-1.el7.x86_64 (mysql57-community)
                  未找到
     您可以尝试添加 --skip-broken 选项来解决该问题
     您可以尝试执行:rpm -Va --nofiles --nodigest

    --解决:移除对 mariadb-libs的依赖

    # yum -y remove mariadb-libs
    # yum install mysql-community-server

    启动MySQL

    # systemctl start mysqld
    # systemctl status mysqld
    mysqld.service - MySQL Server
       Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
       Active: active (running) since 四 2018-04-19 16:10:52 CST; 5s ago
         Docs: man:mysqld(8)
               http://dev.mysql.com/doc/refman/en/using-systemd.html
      Process: 4324 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
      Process: 4245 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
     Main PID: 4328 (mysqld)
       CGroup: /system.slice/mysqld.service
               └─4328 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

    4月 19 16:10:45 ydorcl systemd[1]: Starting MySQL Server...
    4月 19 16:10:52 ydorcl systemd[1]: Started MySQL Server.

  • 相关阅读:
    Windows Server 无法启用 .Net Framework3.5的问题
    DocumentSet 操作代码(二)
    自定义SharePoint2010文档库的上传页面
    SharePoint2010 文档集操作创建
    JQuery 删除SharePoint菜单
    three.js项目引入vue,因代码编写不当导致的严重影响性能的问题,卡顿掉帧严重
    WPF 实现窗体鼠标事件穿透
    如何在传统前端项目中进行javascript模块化编程,并引入使用vue.js、elementui,并且不依赖nodejs和webpack?
    用 three.js 绘制三维带箭头线 (线内箭头)
    Vista中给IIS7添加PHP支持终于算是做成了
  • 原文地址:https://www.cnblogs.com/oracle-ziyuhou/p/8883940.html
Copyright © 2011-2022 走看看