假设连接是localhost,其中包含
*信息_架构
mysql
性能模式
测试
测试数据库*
查询以检索架构计数
计数(模式)
----------------------
5
最佳答案
你可以试试这个
select count(*) from information_schema.SCHEMATA where schema_name not in
('mysql','information_schema');
如果你想要所有数据库
然后使用
select count(*) from information_schema.SCHEMATA where schema_name;
关于phpmyadmin - MYSQL 查询来计算 mysql 服务器中存在的模式数量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17698237/