php ile bir toplu iş dosyası arayarak yedek MySQL veritabanı

0 Cevap php

I failed with the mysqldump method earlier. Now I'm trying to just call the batch file which will call the mysqldump. The php file which calls the batch file, looks something like this:

<?php
shell_exec('c:\\abc.bat');

?>

Ve ben çalıştırdığınızda doğrudan ben bekliyordum 7kb sql dosyayı verir toplu iş dosyası:

mysqldump --opt -u root -ppassword onstor > c:\onstordb.sql

Bunu çalıştırmak için php kullanmak Ama, ben neden acaba, bir 0 Kb dosya olsun. Ben shell_exec ve exec hem çalıştı. Parametreleri ile yanlış bir şey var mı?

0 Cevap