当前位置:首页 > 美丽人生 > 学习成长 > 正文内容

Centos 安装 MariaDB Ver 10.8.6

RonWang3年前 (2020-11-21)学习成长458

Install MariaDB 10.8 on CentOS 8 These are the ideal steps you’ll go through when installing MariaDB 10.8 on CentOS 8 server. 

MariaDB 10.8 install

Step 1: Update System 

If you don’t have any critical services running in Production on the server, update the system before you begin installation of MariaDB on CentOS 8.

sudo yum update  -y

Step 2: Add MariaDB 10.8 repository to CentOS 8

We now need to add the MariaDB yum repository for our CPU architecture. This guide will cover adding repository for a x86_64 CPU machine.

curl -LsS -O https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
sudo bash mariadb_repo_setup --mariadb-server-version=10.8

Step 3: Install MariaDB 10.8 repository to CentOS 8

After adding Yum repository, you can proceed to install MariaDB repository to CentOS 8 straight away.

sudo yum install MariaDB-server MariaDB-client MariaDB-backup -y

When prompted, press y to accept installation:

Start and enable MariaDB service

sudo systemctl enable --now mariadb

Step 4: Secure MariaDB Database Server

sudo mariadb-secure-installation

Test access to database shell:

$ mysql -u root -p
$ Create datebase eshopex;
$ SELECT user, host FROM mysql.user;

The ending install process.You can keep going next work.

版权声明:本文为原创文章,版权归donstudio所有,欢迎分享本文,转载请保留出处!

本文链接:http://parentscn.com/?id=152

标签: 服务器

相关文章

Centos服务器PHP7.X版本的安装与更新

Centos服务器PHP7.X版本的安装与更新

运行服务器WEB时,有些系统对PHP的版本要求比较新,所有本文将特别介绍如何升级和安装新版本的PHP系统。Centos服务器的Nginx,MySQL(MariaDB)的部分参照《CentOS 7.9...

HTTPS证书的申请和部署

HTTPS证书的申请和部署

超文本传输协议安全 (HTTPS) 是 HTTP 的安全版本,HTTP 是用于在 Web 浏览器和网站之间发送数据的主要协议。HTTPS 经过加密,以提高数据传输的安全性。当用户传输敏感数据(例如通过...

Centos Install MemCached, Apcu and OpCache

Centos Install MemCached, Apcu and OpCache

This section provides instructions to install memcached on CentOS and Ubuntu. For additional informa...

Centos彻底删除文件夹、文件命令

Centos彻底删除文件夹、文件命令

本文将介绍在Centos下面底删除文件夹、文件命令(centos 新建、删除、移动、复制等命令:01.新建文件夹mkdir 文件名新建一个名为test的文件夹在home下view sourc...

CentOS 7.9 64位 搭建 LNMP环境

CentOS 7.9 64位 搭建 LNMP环境

运维网站及APP程序等,我们经常要使用云服务器,无论是阿里云,腾讯云,还是国外的亚马逊云,购置纯系统的服务器之后,需要自己安装和搭建环境LAMP。今天,我就带大家一起实战下CentOS 7.9 64b...