首页 > 数据库 >MariaDB VS MySQL 2023年技术总结

MariaDB VS MySQL 2023年技术总结

时间:2023-12-29 15:32:33浏览次数:30  
标签:development password 2023 Server VS Enterprise MySQL MariaDB

专业评测报告来源于Percona,这里摘要关键部分展示二者区别。

https://www.percona.com/blog/mysql-vs-mariadb-reality-check/


MariaDB vs. MySQL vs Percona Server for MySQL:一般比较

MariaDB、MySQL 和 Percona Server for MySQL 都是非常流行的关系数据库管理系统。在下图中,我们将讨论它们之间的一般协议、功能、可扩展性、安全性和可用性。阅读图表时应注意的事项:

  • MariaDB是MySQL的社区开发分支
  • MySQL归甲骨文所有
  • Percona Server for MySQL 是注重性能的 MySQL 变体,免费提供额外的优化和可扩展性功能

MariaDB Server

MySQL

Percona Server for MySQL*

Protocols

MySQL protocol, MariaDB Server extensions

MySQL protocol over port 3306, X Protocol over port 33060

MySQL protocol over port 3306, X Protocol over port 33060

Community – Source Code

Open Source

Open Source

Open Source

Community – Development

Open Source, contributions via the new BSD license or signing the MariaDB Contributor Agreement (MCA)

Open Source, contributions via signing the Oracle Contributor Agreement (OCA)

Open Source

Community – Collaboration

Mailing list, bugs system (Jira), IRC channel

Mailing list, forums, bugs system

Mailing list, forums, bugs system (Jira, Launchpad)

Core – Replication

MariaDB Server replication, with own GTID, compatible only if MariaDB Server is a slave to MySQL, not vice versa

MySQL replication with GTID

MySQL replication with GTID

Core – Routing

MariaDB MaxScale (Business Source License)

MySQL Router (GPLv2)

ProxySQL (GPLv3)

Core – Partitioning

Standard, with extra engines like SPIDER/CONNECT that offer varying levels of support

Standard

Standard

Tool – Editing

Webyog’s SQLYog for Microsoft Windows (MySQL Workbench notes an incompatible server)

MySQL Workbench for Microsoft Windows, macOS, and Linux

MySQL Workbench for Microsoft Windows, macOS, and Linux

Tool – Monitoring

Webyog’s Monyog

MySQL Enterprise Monitor

Percona Monitoring & Management (PMM) (100% open source)

Scalability – Client Connections

Open Source Threadpool

MySQL Enterprise Threadpool

Open Source Threadpool with support for priority tickets

Scalability – Clustering

MariaDB Enterprise Cluster (based on Galera Cluster)

MySQL Group Replication

MySQL Group Replication, Percona XtraDB Cluster (based on a further engineered Galera Cluster)

Security – Encryption

Tablespace and table data-at-rest encryption. Amazon KMS, binlog/redo/tmp file with Aria tablespace encryption

Tablespace data-at-rest encryption. Amazon KMS, Oracle Vault Enterprise Edition

Tablespace data-at-rest encryption with Keyring Vault plugin

Security – Data Masking

MariaDB MaxScale data masking

ProxySQL data masking

ProxySQL data masking

Security – Firewall

MariaDB MaxScale Firewall

MySQL Enterprise Firewall

ProxySQL Firewall

Security – Auditing

MariaDB Audit Plugin (OSS)

MySQL Enterprise Audit Plugin

Percona Audit Plugin (OSS)

Analytics

MariaDB ColumnStore

No

ClickHouse

SQL – Common Table Expressions

Present in MariaDB Server 10.2

In-development for MySQL 8.0 (now a release candidate)

In-development for MySQL 8.0 (now a release candidate)

SQL – Window Functions

Present in MariaDB Server 10.2

In-development for MySQL 8.0 (now a release candidate)

In-development for MySQL 8.0 (now a release candidate)

Temporal – Log-based rollback

In development for MariaDB Server 10.3

No

No

Temporal – system versioned tables

In development for MariaDB Server 10.3

No

No

JSON

No JSON Data Type, 26 functions

JSON Data type, 21 functions

JSON Data type, 21 functions

Official client connectors

C (libmariadbclient), Java, ODBC

C (libmysqlclient), Java, ODBC, .NET, Node.js, Python, C++, mysqlnd for PHP

C (libmysqlclient), Java, ODBC, .NET, Node.js, Python, C++, mysqlnd for PHP

Usability – CJK Language support

No

Gb18030, ngram & MeCab for InnoDB full-text search

Gb18030, ngram & MeCab for InnoDB full-text search

Monitoring – PERFORMANCE _SCHEMA

Instrumentation from MySQL 5.6, sys schema not included

Thorough instrumentation in 5.7, sys schema included

Thorough instrumentation in 5.7, sys schema included

Security – Password authentication

ed25519 (incompatible with sha256_password)

sha256_password (with caching_sha2_password in 8.0)

sha256_password (with caching_sha2_password in 8.0)

Security – Secure out of the box

No

validate_password on by default, to choose a strong password at the start

validate_password on by default, to choose a strong password at the start

Usability – Syntax differences

SHOW EXPLAIN FOR

EXPLAIN FOR CONNECTION

EXPLAIN FOR CONNECTION

Optimiser – Optimiser Tracing

No

Yes

Yes

Optimiser – Optimiser Hints

No

Yes

Yes

DBA – Super readonly mode

No

Yes

Yes

Security – Password expiry

No

Yes

Yes

Security – Password last changed? Password lifetime?

No

Yes

Yes

Security – VALIDATE_PASSWORD _STRENGTH()

No

Yes

Yes

Security – ACCOUNT LOCK/UNLOCK

No

Yes

Yes

Usability – Query Rewriting

No

Yes

Yes

GIS – GeoJSON & GeoHash functionality

Incomplete

Yes

Yes

Security – mysql_ssl_rsa_setup

No (setup SSL connections manually)

Yes

Yes

MySQL Utilities

No

Yes

Yes

Backup locks

No

No (in development for 8.0)

Yes

Usability – InnoDB memcached interface

No

Yes

Yes

支持生态系统和工具

Purpose

MySQL

Percona Server for MySQL

MariaDB Server

Monitoring

MySQL Enterprise Monitor

Percona Monitoring & Management (PMM) (100% open source)

Webyog Monyog

Backup

MySQL Enterprise Backup

Percona XtraBackup

MariaDB Backup (fork of Percona XtraBackup)

SQL Management

MySQL Workbench

MySQL Workbench

Webyog SQLyog

Load Balancing & Routing

MySQL Router

ProxySQL

MariaDB MaxScale

Database Firewall

MySQL Enterprise Firewall

ProxySQL

MariaDB MaxScale

常见问题

1.MariaDB 和 MySQL 哪个更好?

选择 MariaDB 还是 MySQL 取决于您的具体要求和使用情况。两者都很流行,提供类似的核心功能。MariaDB可提高大型数据集的性能,并增强安全功能。另一方面,MySQL受益于庞大的用户群和社区,在可靠性和稳定性方面有着良好的记录。

2.MariaDB和MySQL在性能上有什么区别吗?

MariaDB和MySQL之间的性能差异通常很小,但具体的工作负载、数据库配置和您的数据库需求将决定哪种选择最适合您。为了做出正确的选择,更重要的是关注性能以外的差异,如功能、支持和兼容性。

3.MariaDB是否会取代MySQL?

虽然MariaDB越来越受欢迎,但它并没有取代MySQL成为首选数据库。MariaDB和MySQL仍被大大小小的公司用于各种应用中。

4.是否有一些特定的用例,MariaDB比MySQL更受青睐,反之亦然?

对于处理大型数据集和复杂工作负载的应用来说,MariaDB是一个很好的选择。相比之下,MySQL则是需要多种工具和集成、希望得到广泛采用和社区支持的用户的首选。

5.MariaDB与为MySQL开发的应用程序兼容吗?

是的,作为MySQL的分叉,MariaDB与为MySQL开发的应用程序高度兼容。


标签:development,password,2023,Server,VS,Enterprise,MySQL,MariaDB
From: https://blog.51cto.com/hcymysql/9028452

相关文章

  • Hugging Face 年度回顾:2023,开源大模型之年
    在2023年,大型语言模型(LargeLanguageModels,简称LLMs)受到了公众的广泛关注,许多人对这些模型的本质及其功能有了基本的了解。是否开源的议题同样引起了广泛的讨论。在HuggingFace,我们对开源模型抱有极大热情。开源模型的优势在于,它们不仅促进了研究的可复制性,还鼓励社区参与到......
  • OI练习记录 - 28/12/2023
    悲报:Div4打寄了......
  • 商业银行数据模型白皮书(2023)
    前沿数据治理是银行业高质量推进数字化转型的重要基础。数据模型建设是推动高质量数据治理体系的核心环节。 目录  CONTENTS前言一、商业银行数据模型概述(一)商业银行业数据模型发展经历四个阶段(二)数据模型具有四大价值二、数据模型建设模式(一)贯彻企业战略—基于企......
  • 导出mysql表结构设计文档word
    github上有个很好用的工具:https://github.com/msuno/export-database-structure我使用的数据库MySQL8.0.20一、下载后修改1.pom中的oracle下载失败,解决办法:注释即可,无影响<!--<dependency>--><!--<groupId>com.oracle</groupId>--><!--<artifactId>o......
  • 2023.12.29日报
    首先要说,date类型敲的多了写标题格式的时候都写成了(2023-12-29(笑)),今天基本上完成了财务的业务流程在整个开发过程中充斥着各种各样的问题,其实到最后也不是很明白,今天主要是对昨天完成的内容做了一个细化,主要是突然意识到自己核算工资的方式实在是过于粗暴了,像极了挂电线杆的那类......
  • VMware vSphere 7 Update 3o 下载 (重大更新)
    VMwarevSphere7Update3o下载(重大更新)vCenterServer&ESXi,Dell,HPE,Cisco,LENOVO,FUJITSU,NEC,Inspur,HitachiCustomImage作者主页:sysin.org服务器虚拟化软件vSphere利用行业领先的服务器虚拟化软件VMwarevSphere,为您的现代应用计算环境提供助力,以支持使用任......
  • VMware vCenter Server 8.0U2 发布 - 集中式管理 vSphere 环境
    VMwarevCenterServer8.0U2发布-集中式管理vSphere环境2023-09-21,北京时间22日凌晨vSphere8.0Update2正式发布。作者主页:sysin.orgvSphere8.0U2新增功能,请访问:VMwarevSphere8Update2新增功能VMwarevCenterServer是一款高级服务器管理软件,提供了一个集中式......
  • VMware vSphere 8.0 Update 2 正式版发布 - 企业级工作负载平台
    VMwarevSphere8.0Update2正式版发布-企业级工作负载平台2023-09-21,北京时间22日凌晨vSphere8.0Update2正式发布。ESXi8.0U2&vCenterServer8.0U2作者主页:sysin.org企业级工作负载平台vSphere将云计算的优势引入本地部署工作负载。vSphere可提高性能和运维效率......
  • Adobe Premiere Pro 2023 v23.6 (macOS, Windows) - 专业视频编辑软件
    AdobePremierePro2023v23.6(macOS,Windows)-专业视频编辑软件Acrobat、AfterEffects、Animate、Audition、Bridge、CharacterAnimator、Dimension、Dreamweaver、Illustrator、InCopy、InDesign、LightroomClassic、MediaEncoder、Photoshop、PremierePro、AdobeXD作......
  • Google 2023年最受欢迎的Chrome浏览器扩展
    前言Google最近发布了2023年最受欢迎的Chrome浏览器扩展插件,总计包括了12款扩展:可在此处下载其中包含多款AI驱动的扩展插件上榜,快来看看有你经常用的吗?插件汇总插件下载Scribe:使用AI记录工作流程,并创建分步指南,轻松培训和指导同事。DeepLTranslate:即时翻译网页......