如何在Ubuntu 20.04上安装MariaDB

本教程详细介绍了如何在Ubuntu 20.04服务器上安装MariaDB 10.3,包括更新软件包索引、安装MariaDB、运行安全脚本来限制访问,并提供了可选步骤创建使用密码认证的管理用户。
摘要由CSDN通过智能技术生成

介绍 (Introduction)

MariaDB is an open-source relational database management system, commonly used as an alternative for MySQL as the database portion of the popular LAMP (Linux, Apache, MySQL, PHP/Python/Perl) stack. It is intended to be a drop-in replacement for MySQL.

MariaDB是一个开放源代码的关系数据库管理系统,通常用作MySQL的替代方案,作为流行的LAMP (Linux,Apache,MySQL,PHP / Python / Perl)堆栈的数据库部分。 它旨在替代MySQL。

The short version of this installation guide consists of these three steps:

本安装指南的简短版本包括以下三个步骤:

  • Update your package index using apt

    使用apt更新您的软件包索引

  • Install the mariadb-server package using apt. The package also pulls in related tools to interact with MariaDB

    使用apt安装mariadb-server软件包。 该软件包还引入了与MariaDB交互的相关工具

  • Run the included mysql_secure_installation security script to restrict access to the server

    运行附带的mysql_secure_installation安全脚本以限制对服务器的访问

  • sudo apt update

    sudo apt更新
  • sudo apt install mariadb-server

    sudo apt安装mariadb-server
  • sudo mysql_secure_installation

    须藤mysql_secure_installation

This tutorial will explain how to install MariaDB on an Ubuntu 20.04 server and verify that it is running and has a safe initial configuration.

本教程将说明如何在Ubuntu 20.04服务器上安装MariaDB并验证其是否正在运行并具有安全的初始配置。

先决条件 (Prerequisites)

To follow this tutorial, you will need a server running Ubuntu 20.04. This server should have a non-root administrative user and a firewall configured with UFW. Set this up by following our initial server setup guide for Ubuntu 20.04.

要遵循本教程,您将需要一台运行Ubuntu 20.04的服务器。 此服务器应具有非root用户管理权限,并应使用UFW配置防火墙。 请遵循我们针对Ubuntu 20.04的初始服务器设置指南进行设置

第1步-安装MariaDB (Step 1 — Installing MariaDB)

As of this writing, Ubuntu 20.04’s default APT repositories include MariaDB version 10.3.

在撰写本文时,Ubuntu 20.04的默认APT存储库包括MariaDB版本10.3 。

To install it, update the package index on your server with apt:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值