-
mysql
>
select schema_name from information_schema
.
schemata
;
-
+--------------------+
-
|
schema_name
|
-
+--------------------+
-
|
information_schema
|
-
|
mysql
|
-
|
newdb
|
-
|
performance_schema
|
-
|
test
|
-
+--------------------+
-
5
rows in
set
(
0.02
sec
)
查当前数据库的表: