code_junkie

How do i backup a SQL database using PHP?

Nov 12th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. ~/.my.cnf
  2.  
  3. <?php
  4. header('Content-type: text/plain');
  5. system('mysqldump -utestuser -ptestpassword test');
  6. ?>
  7.  
  8. <?php
  9. header('Content-type: text/plain');
  10. system('mysqldump -utestuser -ptestpassword test');
  11. ?>
Add Comment
Please, Sign In to add comment