php使用exec系统命令执行mysqldump备份数据库
public function backsql($dbname){
$dbhost= 'localhost';
$dbuser= C('DB_USER');
$dbpass= C('DB_PWD');
$backupFile = 'Backup/'.$dbname .'_'. date("Y-m-d_His") . '.bak';
exec("mysqldump -h
原创
2014-11-02 17:12:23 ·
1679 阅读 ·
1 评论