2024年11月Linux通过Yum安装MariaDB数据库的技巧

发布时间:

  ⑴Linux系统对于MariaDB数据库这款开源免费的小型数据库一定不会陌生,不过虽然许多用户都懂得如何使用MariaDB数据库,但是却也有不少用户不知道该如何安装MariaDB数据库。今天小编就和大家分享下yum 安装 MariaDB 数据库的方法。

  ⑵准备yum一个lamp环境,发现yum版本的mysql居然依然是..x的版本,因此准备更换为MariaDB。

  ⑶[rootlocalhost ~]# cat /etc/yum.repos.d/MariaDB.repo

  ⑷# MariaDB . CentOS repository list - created -- : UTC

  ⑸[mariadb]

  ⑹name = MariaDB

  ⑺baseurl =

  ⑻gpgcheck=

  ⑼[rootlocalhost ~]# yum search mariadb

  ⑽Loaded plugins: fastestmirror

  ⑾Loading mirror speeds from cached hostfile

  ⑿* base: ftp.sjtu.edu.

  ⒀* extras: mirrors.aliyun.

  ⒁* updates: mirrors.aliyun.

  ⒂======================================================= N/S Matched: mariadb ========================================================

  ⒃MariaDB-Galera-server.x_ : MariaDB: a very fast and robust SQL database server

  ⒄MariaDB-Galera-test.x_ : MariaDB: a very fast and robust SQL database server

  ⒅MariaDB-cassandra-engine.x_ : MariaDB: a very fast and robust SQL database server

  ⒆MariaDB-client.x_ : MariaDB: a very fast and robust SQL database server

  ⒇MariaDB-mon.x_ : MariaDB: a very fast and robust SQL database server

  ⒈MariaDB-pat.x_ : MariaDB: a very fast and robust SQL database server

  ⒉MariaDB-connect-engine.x_ : MariaDB: a very fast and robust SQL database server

  ⒊MariaDB-devel.x_ : MariaDB: a very fast and robust SQL database server

  ⒋MariaDB-oqgraph-engine.x_ : MariaDB: a very fast and robust SQL database server

  ⒌MariaDB-server.x_ : MariaDB: a very fast and robust SQL database server

  ⒍MariaDB-shared.x_ : MariaDB: a very fast and robust SQL database server

  ⒎MariaDB-test.x_ : MariaDB: a very fast and robust SQL database server

  ⒏Name and summary matches only, use “search all” for everything.

  ⒐安装database:

  ⒑[rootlocalhost ~]# yum install MariaDB-server MariaDB-client

  ⒒[rootlocalhost ~]# yum install MariaDB-*

  ⒓运行database:

  ⒔[rootlocalhost ~]# /etc/init.d/mysql start

  ⒕Starting MySQL. SUESS!

  ⒖[rootlocalhost ~]# mysql -V

  ⒗mysql Ver . Distrib ..-MariaDB, for Linux (x_ using readline .

  ⒘这就是Linux系统中yum 安装 MariaDB 数据库的方法了,有需要的用户就用这种方法进行安装吧。