I want to create a backup from a database, but I get only a blank file.
include(\'config.php\'); $command = \"mysqldump --opt -h \".$_host.\" -u \".$_user.\
For those on Macs
I was battling this issue the entire evening today. Silly mistake: one needs to chmod the directory that you are dumping the file to.
I ran this which fixed the issue:
chmod -R 777 your_dump_directory/