说如果连接是本地主机,其中包含 
*information_schema 
mysql 
performance_schema 
test 
test_database*
查询以检索模式
计数 count(schema)
 
---------- 
5
2 回答
            0        
        
		
SELECT COUNT(SCHEMA_NAME) FROM information_schema.SCHEMATA
于 2013-07-17T11:23:32.393   回答
    
    
            0        
        
		
你可以试试这个
select count(*) from information_schema.SCHEMATA where schema_name not in
('mysql','information_schema');
如果你想要所有数据库
然后使用
select count(*) from information_schema.SCHEMATA where schema_name;
于 2013-07-17T11:26:16.913   回答