Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
127 views
in Technique[技术] by (71.8m points)

php - Mysqldump returning empty file

My script is as following:

<?php

$database = 'database';
$user = 'user';
$password = 'pass';

$filename = 'database_backup_'.date( 'd-m-Y-h:i:s' ).'.sql';

$result = exec( 'mysqldump '.$database.' --password='.$password.' --user='.$user.' --single-transaction >/some-path/backups/'.$filename, $output );

?>

This script is creating a file but it is empty.

question from:https://stackoverflow.com/questions/65831531/mysqldump-returning-empty-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...