Book Image

MariaDb Essentials

By : Kenler
Book Image

MariaDb Essentials

By: Kenler

Overview of this book

This book will take you through all the nitty-gritty parts of MariaDB, right from the creation of your database all the way to using MariaDB’s advanced features. At the very beginning, we show you the basics, that is, how to install MariaDB. Then, we walk you through the databases and tables of MariaDB, and introduce SQL in MariaDB. You will learn about all the features that have been added in MariaDB but are absent in MySQL. Moving on, you’ll learn to import and export data, views, virtual columns, and dynamic columns in MariaDB. Then, you’ll get to grips with full-text searches and queries in MariaDb. You’ll also be familiarized with the CONNECT storage engine. At the end of the book, you’ll be introduced to the community of MariaDB.
Table of Contents (10 chapters)
9
Index

The basics of importing and exporting data

There are several reasons for importing data into MariaDB, or for exporting data from it. The most common reason is taking a backup. In most databases, the data changes frequently. This means that a backup becomes old very quickly. For this reason, we should back up our important data regularly as well as frequently. If data gets lost for any reason, like due to a server crash or due to a bug in an application, we will need to import our backup.

Note that taking a backup before doing something that involves any risk is very important too. For example, we should always take a backup before upgrading our MariaDB version, or before replacing MySQL with MariaDB. It is very unlikely that such operations will cause any damage, but in case it happens we would like to be ready.

We could also export our data to import it into another server, or distribute it as part of an application. It need not be a MariaDB server; it could be MySQL or, in many cases,...