The SHOW SHADOW ALGORITHMS syntax is used to query shadow algorithms for specified database.
ShowShadowAlgorithm::=
'SHOW' 'SHADOW' 'ALGORITHMS' ('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 |
| is_default | Default |
SHOW SHADOW ALGORITHMS FROM shadow_db;
mysql> SHOW SHADOW ALGORITHMS FROM shadow_db;
+-------------------------+-------------+-----------------------------------------+------------+
| shadow_algorithm_name | type | props | is_default |
+-------------------------+-------------+-----------------------------------------+------------+
| user_id_match_algorithm | VALUE_MATCH | column=user_id,operation=insert,value=1 | false |
+-------------------------+-------------+-----------------------------------------+------------+
1 row in set (0.00 sec)
SHOW SHADOW ALGORITHMS;
mysql> SHOW SHADOW ALGORITHMS;
+-------------------------+-------------+-----------------------------------------+------------+
| shadow_algorithm_name | type | props | is_default |
+-------------------------+-------------+-----------------------------------------+------------+
| user_id_match_algorithm | VALUE_MATCH | column=user_id,operation=insert,value=1 | false |
+-------------------------+-------------+-----------------------------------------+------------+
1 row in set (0.00 sec)
SHOW, SHADOW, ALGORITHMS, FROM
