MariaDB 是 MySQL 的直接替代品。 它易于安装,提供许多速度和性能改进,并且易于集成到大多数 MySQL 部署中。 兼容性问题的答案可以在以下位置找到: MariaDB 与 MySQL – 兼容性. MariaDB 提供比 MySQL 更多的存储引擎,包括 Cassandra (NoSQL)、XtraDB(InnoDB 的替代品)和 OQGRAPH。
飞行前检查
- 这些说明旨在将 MariaDB 安装在单个 Fedora 21 个节点。
- 我将从 Liquid Web Self Managed 工作 Fedora 21服务器,我将以root身份登录。
安装 MariaDB
MariaDB 就像只运行一个命令一样简单:
yum -y install mysql-server mysql
然后启动 MySQL,现在是 MariaDB:
systemctl start mysqld
确保 MySQL/MariaDB 在引导时启动:
systemctl enable mariadb
检查 MySQL/MariaDB 的状态:
systemctl status mysqld
置顶 MySQL/MariaDB:
systemctl stop mysqld
使用命令客户端检查安装:
mysql
Welcome to the MariaDB monitor. Commands end with ; or g.
Your MariaDB connection id is 3
Server version: 10.0.14-MariaDB MariaDB Server
Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others.
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
MariaDB [(none)]>