Linux 7上面安装Mysql

在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)]>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容