欢迎投稿

今日深度:

mariadb 在线或者离线安装,mariadb在线离线

mariadb 在线或者离线安装,mariadb在线离线


1:centos7.3离线(mariadb 10.2.18)

下载地址:http://mirrors.neusoft.edu.cn/mariadb//mariadb-10.2.18/yum/centos73-amd64/rpms/(比较快,注意自己选择的版本)

http://yum.mariadb.org/10.2/centos7-amd64/rpms/(比较慢)

http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/(阿里云源仅仅下载了boost-*这个rpm)

执行安装命令:

yum install ./* 

开启服务:

systemctl status mariadb

systemctl start mariadb

systemctl stop mariadb

登入:mysql -uroot -p

2:centos7.3在线安装(mariadb 10.2.18)

[root@h129 tmp]# cd /etc/yum.repos.d/
[root@h129 yum.repos.d]# mkdir MariaDB.repo

[root@h129 tmp]# vim MariaDB.repo 
# MariaDB 10.2 CentOS repository list - created 2018-11-02 08:26 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

开始安装:

sudo yum install MariaDB-server MariaDB-client

开启服务:

systemctl status mariadb

systemctl start mariadb

systemctl stop mariadb

登入:mysql -uroot -p

完成(下面是博主的安装思路,仅供参考)

3:设置远程登入

use mysql

###update user set password=password('admin') where user='root'

insert into user(host,user,password) values('%','root',password('admin'));

grant all privileges on *.* to root@'%' identified by "admin";

flush privileges;

4:官网地址:https://downloads.mariadb.org/

拖到最下方

选择自己的系统版本->选择mariadb版本->在/etc/yum.repos.d 中创建文件MariaDB.repo ->

将方块中的内容粘贴到MariaDB.repo中->执行安装命令

centos7.3示例:

3.1 在线安装:

创建 MariaDB.repo文件

 

开始安装:

sudo yum install MariaDB-server MariaDB-client

3.2 离线安装

思路一:

https://mariadb.com/kb/en/library/installing-mariadb-with-the-rpm-tool/(官方参考地址)

全部按照官方的试了一下任何命令不修改,很坑,缺少依赖

也可以下载完那几个包之后用 yum install ./* 试试

思路二:

首先找一台可以联网的机子查看需要哪些依赖包

 

创建 MariaDB.repo文件

 

下载依赖包:

yum install --downloadonly --downloaddir=/tmp/tmp/ MariaDB-server MariaDB-client

 

将/tmp/tmp/ 中下载好的rpm包 copy到不能联网的服务器上执行

yum install ./* 

www.htsjk.Com true http://www.htsjk.com/mariadb/35088.html NewsArticle mariadb 在线或者离线安装,mariadb在线离线 1:centos7.3离线(mariadb 10.2.18) 下载地址:http://mirrors.neusoft.edu.cn/mariadb//mariadb-10.2.18/yum/centos73-amd64/rpms/(比较快,注意自己选择的版本) http://y...
相关文章
    暂无相关文章
评论暂时关闭