Differences in MariaDB in Debian (and Ubuntu)
The .deb packages provided by MariaDB Foundation's and MariaDB Corporation's repositories are not identical to the official .deb packages provided by Debian's and Ubuntu's default repositories.
The packages provided by MariaDB Foundation's and MariaDB Corporation's repositories are generated using the Debian packaging in MariaDB's official source code. The Debian packaging scripts are specifically in the debian/ directory.
The packages provided by Debian's and Ubuntu's default repositories are generated using the Debian packaging in Debian's mirror of MariaDB's source code, which contains some custom changes. The source tree can be found here:
As a consequence, MariaDB behaves a bit differently if it is installed from Debian's and Ubuntu's default repositories.
Option File Locations
- The option file located at
/etc/mysql/my.cnfis handled by theupdate-alternativesmechanism when themysql-commonpackage is installed. It is a symbolic link that references eithermysql.cnformariadb.cnfdepending on whether MySQL or MariaDB is installed. Most of the MariaDB option files are therefore actually located in/etc/mysql/mariadb.d/.
System Variables
| Variable | MariaDB in Debian | Standard MariaDB | Notes |
|---|---|---|---|
| character_set_server | utf8mb4 | latin1 | Debian sets a default character set that can support emojis etc. |
| collation_server | utf8mb4_general_ci | latin1_swedish_ci |
Options
| Option | MariaDB in Debian | Standard MariaDB | Notes |
|---|---|---|---|
plugin-load-add |
auth_socket.so |
- | Before MariaDB 10.4.3, MariaDB did not enable the unix_socket authentication plugin by default.This is default in Debian, allowing passwordless login. |
TLS
- MariaDB binaries from
.debpackages provided by Debian's and Ubuntu's default repositories are linked with a different TLS library than MariaDB binaries from.debpackages provided by MariaDB Foundation's and MariaDB Corporation's repositories.
- MariaDB Server binaries:
- In MariaDB 10.4.6 and later, MariaDB Server is statically linked with the bundled wolfSSL libraries in
.debpackages provided by Debian's and Ubuntu's default repositories. - In MariaDB 10.4.5 and before, MariaDB Server is statically linked with the bundled yaSSL libraries in
.debpackages provided by Debian's and Ubuntu's default repositories. - In contrast, MariaDB Server is dynamically linked with the system's OpenSSL libraries in
.debpackages provided by MariaDB Foundation and MariaDB Corporation.
- In MariaDB 10.4.6 and later, MariaDB Server is statically linked with the bundled wolfSSL libraries in
- MariaDB client and utility binaries:
- In MariaDB 10.4.6 and later, MariaDB's clients and utilities and MariaDB Connector/C are dynamically linked with the system's GnuTLS libraries in
.debpackages provided by Debian's and Ubuntu's default repositories. libmysqlclient is still statically linked with the bundled wolfSSL libraries. - In MariaDB 10.2 and later, MariaDB's clients and utilities and MariaDB Connector/C are dynamically linked with the system's GnuTLS libraries in
.debpackages provided by Debian's and Ubuntu's default repositories. libmysqlclient is still statically linked with the bundled yaSSL libraries. - In MariaDB 10.1 and earlier, MariaDB's clients and utilities and libmysqlclient are statically linked with the bundled yaSSL libraries in
.debpackages provided by Debian's and Ubuntu's default repositories. - In contrast, MariaDB's clients and utilities, libmysqlclient, and MariaDB Connector/C are dynamically linked with the system's OpenSSL libraries in
.debpackages provided by MariaDB Foundation's and MariaDB Corporation's repositories.
- In MariaDB 10.4.6 and later, MariaDB's clients and utilities and MariaDB Connector/C are dynamically linked with the system's GnuTLS libraries in
- See TLS and Cryptography Libraries Used by MariaDB for more information about which libraries are used on which platforms.
Authentication
- The
unix_socketauthentication plugin is installed by default in new installations that use the.debpackages provided by Debian's default repositories in Debian 9 and later and Ubuntu's default repositories in Ubuntu 15.10 and later.
- The
root@localhostcreated bymysql_install_dbwill also be created to authenticate via theunix_socketauthentication plugin in these builds.
See Also
More Information
For details, check out the Debian and Ubuntu official repositories:
© 2021 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/differences-in-mariadb-in-debian/