Book Image

MariaDb Essentials

Book Image

MariaDb Essentials

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 (15 chapters)
MariaDB Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Full-text queries


There are three different modes of full-text queries. The default mode, which is the natural language mode, will only search documents containing at least one of the words that you have specified. The Boolean mode allows you to make more complex queries by using different operators to exclude words, to give a higher relevance to certain words, or to search for a specific phrase instead of unlinked words. The last mode, called query expansion search, will first perform a natural language search in order to retrieve the most relevant terms from the resulting rows. Those terms will then be added to the query, which will be executed again.

Note

In the following section, we will use the Sakila Sample Database. Please install it by following the instructions given on the MySQL website at http://dev.mysql.com/doc/sakila/en/sakila-installation.html.

The natural language mode

In this mode, MariaDB will look for rows that are relevant to the specified query using natural human language...