Databases: Backup_Restore Md.Abdullah Bin Salam (contact me)
This class can be used to backup and restore MySQL database from SQL files.
It can generate a backup of a given MySQL database or a specific table by generating a file with SQL CREATE TABLE and INSERT statements that can be used to recreate the database.
The class can also restore a database by reading the a backup file and executing the SQL statements that it contains.