This article brings you relevant knowledge about MariaDB and MySQL. It mainly talks about the differences between MariaDB and MySQL. Friends who are interested can take a look at it together. I hope it will be useful to you. help.
Features | MariaDB | MySQL |
---|---|---|
Distribution | MariaDB is a branch of MySQL | MySQL is a product of Oracle Corporation |
Development Company | MariaDB is maintained by the MariaDB Foundation and Community | MySQL is maintained by Oracle Corporation |
Feature Improvements and Enhancements | Performance and Reliability | |
Contains additional storage engines such as Aria, XtraDB, TokuDB etc. | Includes storage engines such as MyISAM and InnoDB | |
MariaDB uses the year and version number as the version naming, such as MariaDB 10.3.8 | MySQL uses major version number, minor version number and revision number as version naming, such as MySQL 8.0.22 | |
Use GNU Universal Public License (GPL) | MySQL uses two licenses: the open source GNU GPL License or the commercial license | |
With MySQL has high compatibility | MariaDB is more compatible than MySQL | |
Supports more programming languages, such as C, Perl, Python, Java, etc. | Support mainstream programming languages, such as C, Java, Perl, Python, etc. | |
Provide better security , such as supporting encryption, safe default settings, etc. | MySQL also provides good security, but the default configuration is looser | |
provided More performance optimization options, such as query optimization, multi-threading, etc. | MySQL also provides a wealth of performance optimization options | |
has Active community support | MySQL's community support is also very active |
It should be noted that although there are many differences between MariaDB and MySQL , they can be used interchangeably in most situations because they have the same SQL syntax and functionality.Incompatible features between the two
MariaDB | MySQL | |
---|---|---|
InnoDB | InnoDB | |
InnoDB supports page-level compression with a high compression rate | InnoDB supports row-level compression and the compression rate is low | |
MariaDB has a better caching mechanism and can automatically adjust the cache size as needed | MySQL’s caching mechanism is relatively simple | |
MariaDB supports full-text search index, using the InnoDB engine | MySQL supports full-text search Index, but does not support using | |
MariaDB supports a wider variety of partitioning strategies, such as by month, day, and by key value | MySQL supports relatively few partition strategies | |
MariaDB supports more kinds of backups, including hot backup and incremental backup | MySQL backup is relatively simple | |
MariaDB has better performance in some cases, such as using multiple threads for queries | MySQL may perform better in some cases, such as on certain types of queries |
The above is the detailed content of An article explaining the difference between MariaDB and MySQL in detail. For more information, please follow other related articles on the PHP Chinese website!