This Php Class will help you to take a backup from your Mysql Database as it will generate .gz file to be downloaded or stored on a specific path.
First you need to include the PHP class to use it:
Then you have 3 different ways to take the backup:
To restore a MYSQL database backup include restore class:
Then start restoring process:
This class & more examples can be downloaded from this link: Download