【发布时间】:2013-07-15 21:56:57
【问题描述】:
说如果连接是 localhost 其中包含
*information_schema
mysql
性能模式
测试
测试数据库*
查询以检索模式计数
计数(模式)
----------------------
5
【问题讨论】:
标签: mysql phpmyadmin mysqldump mysql-workbench
说如果连接是 localhost 其中包含
*information_schema
mysql
性能模式
测试
测试数据库*
查询以检索模式计数
计数(模式)
----------------------
5
【问题讨论】:
标签: mysql phpmyadmin mysqldump mysql-workbench
SELECT COUNT(SCHEMA_NAME) FROM information_schema.SCHEMATA
【讨论】:
你可以试试这个
select count(*) from information_schema.SCHEMATA where schema_name not in
('mysql','information_schema');
如果你想要所有数据库
然后使用
select count(*) from information_schema.SCHEMATA where schema_name;
【讨论】: