The command-line client
The code and output examples in this book use the mysql command-line client. Knowing some client commands can greatly increase productivity when this tool is used.
The mysql command-line client knows that a SQL statement is terminated when it finds a semicolon (;
), a \g
, or a \G
terminator. In the first case, the output is printed in a tabular form, shown as follows:
MariaDB [(none)]> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | test | +--------------------+
Tip
Downloading the example code
You can download the example code files for all Packt Publishing books you have purchased from your account at http://www.packtpub.com. If you have ...
Get Mastering MariaDB 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.