The SHOW DEFAULT SHADOW ALGORITHM
syntax is used to query default shadow algorithm for specified database.
ShowEncryptAlgorithm::=
'SHOW' 'SHADOW' 'ALGORITHM' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
is not specified, the default is the currently used DATABASE
. If DATABASE
is not used, No database selected
will be prompted.Column | Description |
---|---|
shadow_algorithm_name | Shadow algorithm name |
type | Shadow algorithm type |
props | Shadow algorithm properties |
SHOW DEFAULT SHADOW ALGORITHM FROM shadow_db;
mysql> SHOW DEFAULT SHADOW ALGORITHM FROM shadow_db;
+-------------------------+-------------+-----------------------------------------+
| shadow_algorithm_name | type | props |
+-------------------------+-------------+-----------------------------------------+
| user_id_match_algorithm | VALUE_MATCH | column=user_id,operation=insert,value=1 |
+-------------------------+-------------+-----------------------------------------+
1 row in set (0.00 sec)
SHOW SHADOW ALGORITHM;
mysql> SHOW SHADOW ALGORITHM;
+-------------------------+-------------+-----------------------------------------+
| shadow_algorithm_name | type | props |
+-------------------------+-------------+-----------------------------------------+
| user_id_match_algorithm | VALUE_MATCH | column=user_id,operation=insert,value=1 |
+-------------------------+-------------+-----------------------------------------+
1 row in set (0.00 sec)
SHOW
, DEFAULT
,SHADOW
, ALGORITHM
, FROM