7 个解决方案
#1
show databases ?
#2
show databases;
#3
select `SCHEMA_NAME` from `information_schema`.`SCHEMATA`;
#4
顶!顶!顶!顶!顶!
#5
show databases;
#7
127.0.0.1~root@localhost~test>show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| cpc |
| db1 |
| mysql |
| test |
+--------------------+
5 rows in set (0.00 sec)
#1
show databases ?
#2
show databases;
#3
select `SCHEMA_NAME` from `information_schema`.`SCHEMATA`;
#4
顶!顶!顶!顶!顶!
#5
show databases;
#6
#7
127.0.0.1~root@localhost~test>show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| cpc |
| db1 |
| mysql |
| test |
+--------------------+
5 rows in set (0.00 sec)