【Centos】 centos7 安装mariaDB

前端之家收集整理的这篇文章主要介绍了【Centos】 centos7 安装mariaDB前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
[dream361@za ~]$ sudo yum search mariadb #查找需安装的包
mariadb-libs.x86_64 : The shared libraries required for MariaDB/MysqL clients #mariadb客户端
mariadb-server.x86_64 : The MariaDB server and related files #mariadb服务 [dream361@za ~]$ sudo yum install -y mariadb-server.x86_64 mariadb-libs.x86_64 #安装搜索到的正确的包 [dream361@za ~]$ systemctl start mariadb #启动mariadb [dream361@za ~]$ systemctl status mariadb #查看是否启动 [dream361@za ~]$ MysqL_secure_installation #安装数据库实例 [dream361@za ~]$ sudo MysqL -uroot -p1 #登录MysqL

猜你在找的CentOS相关文章