美文网首页
Linux 7上面安装Mysql

Linux 7上面安装Mysql

作者: 大风0102 | 来源:发表于2017-09-19 22:25 被阅读0次

    在linux上安装mysql

    因为版权的原因,linux7上面的mysql,已经用mariadb这个发行版本了。下面我们就安装 mariadb,不用担心兼容性问题,你就当他是mysql就可以了。

    yum install mariadb mariadb-server

    检查mariadb服务是否成功安装了

    [ec2-user@ip-172-31-19-80 init.d]$ systemctl list-unit-files |grep maria
    mariadb.service disabled

    启动mysql

    service mariadb start

    进入mysql,看到如下的内容,就说明你的mysql已经配置好了。

    [ec2-user@ip-172-31-19-80 booking-node]$ mysql
    Welcome to the MariaDB monitor. Commands end with ; or \g.
    Your MariaDB connection id is 7
    Server version: 5.5.56-MariaDB MariaDB Server
    Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    MariaDB [(none)]>

    相关文章

      网友评论

          本文标题:Linux 7上面安装Mysql

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