MySQL 8 Cookbook
上QQ阅读APP看书,第一时间看更新

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.