【Centos】 centos7 安装mariaDB

版权声明:原创文章,转载请注明出处 https://blog.csdn.net/dream361/article/details/68957256
[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
展开阅读全文

没有更多推荐了,返回首页