General Security Guidelines


Anyone using MariaDB on a computer connected to the Internet should read this section to avoid the most common security mistakes.

In discussing security, we emphasize the necessity of fully protecting the entire server host (not just the MariaDB server) against all types of applicable attacks: eavesdropping, altering, playback, and denial of service. We do not cover all aspects of availability and fault tolerance here.

MySQL uses security based on Access Control Lists (ACLs) for all connections, queries, and other operations that users can attempt to perform. There is also support for SSL-encrypted connections between MariaDB clients and servers. Many of the concepts discussed here are not specific to MariaDB at all; the same general ideas apply to almost all applications.

When running MySQL, follow these guidelines whenever possible: