💡
原文英文,约200词,阅读约需1分钟。
📝
内容提要
为避免超出数据库表数量限制,可以通过登录托管管理面板并使用phpMyAdmin等工具,执行SQL脚本查询每个数据库的表数量。脚本为:select table_schema as 'database', count(*) as 'tables' from information_schema.tables where table_type = 'BASE TABLE' group by table_schema;
🎯
关键要点
- 大多数托管服务提供商限制每个数据库的表数量。
- 检查数据库表的总数量可以避免超出配额。
- 登录托管管理面板并打开phpMyAdmin等工具。
- 执行SQL脚本查询每个数据库的表数量。
- SQL脚本为:select table_schema as 'database', count(*) as 'tables' from information_schema.tables where table_type = 'BASE TABLE' group by table_schema;
- 查询结果将返回包含数据库名称和每个数据库表数量的两列数据。
➡️