How to – Using PHP To Backup MySQL Database

There are at least three ways to backup your MySQL Database : Execute a database backup query from PHP file. Run mysqldump using system() function. Use phpMyAdmin to do the backup. Execute a database backup query from PHP file Below is an example of using SELECT INTO OUTFILE query for...