CentOS 8 安装 mariadb 服务器

在 Centos 8 上,默认安装的 mariadb 服务器版本为:MariaDB Community Server 10.3

你只需要执行:

dnf install mariadb-server

上面的命令进行安装就可以了。

运行结果

 

dnf-install-mariadb-server-01

 

通过命令查看运行数据库的版本:systemctl status mariadb

[root@vps-14bde4ea ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.3 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2020-11-27 16:06:39 UTC; 9s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
 Main PID: 16185 (mysqld)
   Status: "Taking your SQL requests now..."
    Tasks: 30 (limit: 11019)
   Memory: 85.2M
   CGroup: /system.slice/mariadb.service
           └─16185 /usr/libexec/mysqld --basedir=/usr

Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysql-prepare-db-dir[16082]: See the MariaDB Knowledgebase at http://mariadb.com/kb or the
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysql-prepare-db-dir[16082]: MySQL manual for more instructions.
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysql-prepare-db-dir[16082]: Please report any problems at http://mariadb.org/jira
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysql-prepare-db-dir[16082]: The latest information about MariaDB is available at http://mariadb.org/.
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysql-prepare-db-dir[16082]: You can find additional information about the MySQL part at:
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysql-prepare-db-dir[16082]: http://dev.mysql.com
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysql-prepare-db-dir[16082]: Consider joining MariaDB's strong and vibrant community:
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysql-prepare-db-dir[16082]: https://mariadb.org/get-involved/
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca mysqld[16185]: 2020-11-27 16:06:39 0 [Note] /usr/libexec/mysqld (mysqld 10.3.17-MariaDB) starting as process 16185 ...
Nov 27 16:06:39 vps-14bde4ea.vps.ovh.ca systemd[1]: Started MariaDB 10.3 database server.
[root@vps-14bde4ea ~]# 

在上面的界面中,你可以看到运行服务器的版本。

 

dnf-install-mariadb-server-02

 

通过这个命令,你可以看到当前的版本号。

 

https://www.ossez.com/t/centos-8-mariadb/738

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页