The syntax is:
SHOW DATABASES [LIKE 'database name'];
Syntax is as follows:
- LIKE clause is optional, used to match the specified database name. LIKE clauses can be a partial match may be an exact match.
- Database name from the single quotes
' '
surrounded.
1, view the current permissions within the allowed range of all databases
show databases;
2, view a custom database
show databases like <database name>
3, see the database contains a character
show databases like '%<字符>%';
4. Check that begin with a character database
show databases like '<字符>%';
5, to see the end of a character database
show databases like '%<字符>';