With --help
, -?
or -I
, I could show mysql client options before login as shown below. *The doc explains it more:
mysql --help
Or:
mysql -?
Or:
mysql -I
mysql --help
...
Usage: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe [OPTIONS] [database]
-?, --help Display this help and exit.
-I, --help Synonym for -?
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
(Defaults to on; use --skip-auto-rehash to disable.)
-A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get
table and field completion. This gives a quicker start of
mysql and disables rehashing on reconnect.
--auto-vertical-output
Automatically switch to vertical output mode if the
result is wider than the terminal width.
-B, --batch Don't use history file. Disable interactive behavior.
(Enables --silent.)
...
Now, how can I show mysql client commands after login like use
, exit
, clear
, delimiter
, etc?
You can use these commands to show mysql client commands as shown below. *The doc explains it more:
*Adding one or more characters like
apple
just after\h
or\?
as shown below still works:Or:
Then, you can show mysql client commands as shown below:
In addition, you can show mysql client server-side help with
contents
as shown below. *The categories are listed and the doc explains it more:Then, you can show one of the categories
Data Manipulation
as shown below. *The topics are listed:Then, you can show one of the topics
SELECT
ofData Manipulation
as shown below. *The explanation is shown: