Centos

  • 阿里云服务器上默认已经安装了mariadb,只是没有安装完全。若是输入一下命令

    rpm -qa | grep mariadb
    

    则会出现

    mariadb-libs-5.5.56-2.el7.x86_64

    若是启动服务

    systemctl start mariadb.service
    

    则会报错:

    Failed to start mariadb.service: Unit not found.

    此时需要安装mariadb-server

    yum install -y mariadb-server
    

    如果yum没有安装的话:

    wget http://yum.baseurl.org/downlo