{include file='common/head.html'}

- 数据库管理

{if([$db]=='mysql')}

选择 | 表名称 | 表引擎 | 编码 | 版本 | 行数 | 表创建时间 | 最后更新时间 | 大小 | 多余
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{php}$sum1 = 0; $sum2 = 0;{/php}
{foreach $tables(key,value,num)}
{php} $size = round(($value->Data_length + $value->Index_length)/1024,2); $sum1 += $size; {/php}
| [value->Name] | [value->Engine] | [value->Collation] | [value->Version] | [value->Rows] | [value->Create_time] | [value->Update_time] | {php}echo $size{/php} KB | {if($value->Data_free)} {php} $free = round($value->Data_free/1024,2); echo $free.' KB'; $sum2 += $free; {/php} {else} - {/if}
{/foreach}
| [num] 张表 |  |  |  |  |  | 总计： | {php}echo $sum1{/php} KB | {php}echo $sum2?:0{/php} KB

{if([fun=check_level('mod')])}
{/if} {/if} {if([$db]=='sqlite')}

注意：Sqlite数据库只支持直接备份。

{/if}
{include file='common/foot.html'}