See also

After connecting, you might have noticed a warning:

Warning: Using a password on the command line interface can be insecure.

To learn about the secure ways of connecting, refer to Chapter 14, Security.

Once you are connected to the command-line prompt, you can execute the SQL statements, which can be terminated by ;\g, or \G. ; or \g—output is displayed horizontally, \G—output is displayed vertically.

Get MySQL 8 Cookbook 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.