php - Not able to create database dump from usb -


i working on application need run usb. using uniform server this.

my application running not able create database dump using system("my command").
php code.

date_default_timezone_set('asia/kolkata'); $date =date('d-m-y_h-i-s-a', time()); $fl = $date . "_backup.sql";  $query = "f:\\uniserverz\\core\\mysql\\bin\\mysqldump.exe --user root --password root " . $c['database'] . " > ../uploads/" . $fl . ""; system($query);     echo '<a href="http://' . $_post['loc'] . '/rally/uploads/' . $fl . '" download="' . $fl . '">click here download database dump                  </a>'; 

i can perform action on wamp server not able usb server.

finally found solution can create datadump in different ways (can ref from: http://viralpatel.net/blogs/mysql-database-backup-mysql-mysqldump-backup-command/)

in case used

 $query = "f:\\uniserverz\\core\\mysql\\bin\\mysqldump.exe --user root --password=root " . $c['database'] . " > ../uploads/" . $fl . ""; 

this working me. :)


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -