//备份脚本 exec("{$cfg['bak']['<a rel="nofollow external" class="tag_link" href="http://www.phpv5.com/blog/tag/mysqldump/" target="_blank" title="查看 mysqldump 的全部文章">mysqldump</a>']} -u {$data['username']} --password={$data['password']} --default-character-set=gbk {$data['dbname']} > {$fileName} "); //恢复脚本 exec("{$cfg['bak']['mysql']} -u {$data['username']} --password={$data['password']} {$data['dbname']} < {$fileName}" );