Linux之mariadb数据库的安装使用

本文详细介绍了在Linux系统中安装MariaDB数据库,包括通过yum安装、开启服务、初始化配置、设置远程访问权限,以及登录、管理数据库、创建数据库、修改表内容、授权用户等操作。
摘要由CSDN通过智能技术生成

标题数据库软件的介绍

MariaDB数据库管理系统由MySQL项目创始者重新研发
MariaDB由开源社区进行维护,不受商业专利限制
MariaDB和MySQL在性能上基本保持一致,两者的操作命令也十分相似
相较于MySQL,MariaDB数据库管理系统有了很多新鲜的扩展特性,例如对微秒级别的支持、线程池、子查询优化、进程报告等

安装mariadb软件并设置服务开启等配置

安装mariadb软件
yum install mariadb-server.x86_64 -y
在这里插入图片描述
开启mariadb服务
在这里插入图片描述
查看防火墙的状态
在这里插入图片描述

初始化数据库mysql_secure_installation

[root@192 ~]# mysql_secure_installation 

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ..
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值