centos 安装和配置mariadb详细教程

Posted yqj234

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos 安装和配置mariadb详细教程相关的知识,希望对你有一定的参考价值。

1.安装maria database 

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

dnf install mariadb-server  命令进行安装就可以了。

dnf install mariadb-server

2. 启动maria database

     安装成功以后,需要手动启动 maria database

systemctl  start  mariadb

3.查看maria database运行状态

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

systemctl status mariadb

运行结果

mariadb.service - MariaDB 10.3 database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled) Active: active (running) since Thu 2021-10-07 21:03:47 CST; 4s ago Docs: man:mysqld(8) https://mariadb.com/kb/en/library/systemd/ Process: 28785 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, status=0/SUCCESS) Process: 28629 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mariadb.service (code=exited, status=0/SUCCESS) Process: 28593 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS) Main PID: 28754 (mysqld) Status: "Taking your SQL requests now..." Tasks: 30 (limit: 10834) Memory: 87.8M CGroup: /system.slice/mariadb.service └─28754 /usr/libexec/mysqld --basedir=/usr Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysql-prepare-db-dir[28629]: See the MariaDB Knowledgebase at http://mariadb.com/kb or the Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysql-prepare-db-dir[28629]: MySQL manual for more instructions. Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysql-prepare-db-dir[28629]: Please report any problems at http://mariadb.org/jira Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysql-prepare-db-dir[28629]: The latest information about MariaDB is available at http://mariadb.org/. Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysql-prepare-db-dir[28629]: You can find additional information about the MySQL part at: Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysql-prepare-db-dir[28629]: http://dev.mysql.com Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysql-prepare-db-dir[28629]: Consider joining MariaDB's strong and vibrant community: Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysql-prepare-db-dir[28629]: https://mariadb.org/get-involved/ Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ mysqld[28754]: 2021-10-07 21:03:47 0 [Note] /usr/libexec/mysqld (mysqld 10.3.28-MariaDB) starting as process 28754 ... Oct 07 21:03:47 iZuf648xlh7jh935ertehqZ systemd[1]: Started MariaDB 10.3 database server.

以上是关于centos 安装和配置mariadb详细教程的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7安装MYSQL8.X详细教程

CentOS7.3编译安装MariaDB10.2.12

CentOS7.7中安装MySQL5.7教程(超详细)

Linux的MySQL安装和配置(详细)

CentOS 7.0系统安装配置LAMP服务器(Apache+PHP+MariaDB)

Centos7安装MySQL详细步骤(配置开机自启)