Chapter 3. Securing MariaDB

Bad things happen, whether accidentally or on purpose, and we want to protect our MariaDB database against both. Threats come in many different forms and come from many different places, including—but not limited to—physical threats, filesystem threats, network threats, and user threats.

The topics that we will cover in this chapter include the following:

  • Security layers
  • Securing MariaDB in 10 seconds
  • Connecting safely
  • Server security
  • Building security
  • Internal network security
  • Internet security

Security layers

You can think of the data in your database as being at the center of a set of rings, as illustrated by the following figure:

The outermost ring is the Internet. This is the outside world. If we are running a business, this ...

Get Getting Started with MariaDB - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.