美文网首页
Docker Rhel or Centos Mysql安装

Docker Rhel or Centos Mysql安装

作者: lucus_guo | 来源:发表于2017-05-17 16:41 被阅读0次

    1. Change root user

    sudo su
    

    2. Install MySQL YUM repository

    ## CentOS 7 and Red Hat (RHEL) 7 ##
    yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
    
    ## CentOS 6 and Red Hat (RHEL) 6 ##
    yum localinstall https://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm
    
    ## CentOS 5 and Red Hat (RHEL) 5 ## 
    yum localinstall https://dev.mysql.com/get/mysql57-community-release-el5-7.noarch.rpm
    

    3. Update or Install MySQL 5.7.17

    yum install mysql-community-server
    

    4. Start MySQL server and autostart MySQL on boot

    systemctl start mysqld.service ## use restart after update
    
    systemctl enable mysqld.service
    

    相关文章

      网友评论

          本文标题:Docker Rhel or Centos Mysql安装

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