NOTE:Please change below credentials with respect to your Database and Run the file. <?php define ( "DB_USER" , 'DatabaseUSERNAME' ); define ( "DB_PASSWORD" , 'DatabasePASSWORD' ); define ( "DB_NAME" , 'DatabaseNAME' ); define ( "DB_HOST" , 'localhost' ); define ( "BACKUP_DIR" , 'myphp-backup-files' ); // Comment this line to use same script's directory ('.') define ( "TABLES" , '*' ); // Full backup //define("TABLES", 'table1, table2, table3'); // Partial backup of required tables define ( "CHARSET" , 'utf8' ); define ( "GZIP_BACKUP_FILE" , true ); // Set to false if you want plain SQL backup files (not gzipped) class Backup_Database { var $host ; var $username ; ...
Comments
Post a Comment