Hello all! Im trying to use mysqldump like below:
mysqldump -hlocalhost -uadmin -padmin shop> D:\b2\shop3.sql
When i execute it in command prompt, the file shop3 is generated with all the tables from the shop database. But, when I use it in my php file like below, it generates an empty file.
$cmd = 'mysqldump -hlocalhost -uadmin -padmin shop > D:\b2\shop3.sql';
system($cmd);
Can anyone help me find my error please? Thanks