Guest User

Untitled

a guest
Feb 11th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2. $dump_path = ""; //input location for the backup to be saved
  3. $host = ""; //db host e.g.- localhost
  4. $user = ""; //user e.g.-root
  5. $pass = ""; //password
  6. $command=$dump_path.'mysqldump -h '.$host.' -u '.$user.' bank > bank.sql';
  7. system($command);
  8. ?>
Add Comment
Please, Sign In to add comment