CentOS 8 安裝 mariadb 伺服器

huyuchengus發表於2020-11-28

在 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

相關文章