Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dump_path = ""; //input location for the backup to be saved
- $host = ""; //db host e.g.- localhost
- $user = ""; //user e.g.-root
- $pass = ""; //password
- $command=$dump_path.'mysqldump -h '.$host.' -u '.$user.' bank > bank.sql';
- system($command);
- ?>
Add Comment
Please, Sign In to add comment