How to create database backup and restore system with php mysql? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create database backup and restore system with php mysql?

I make a management system with php mysql. I want to add mysql backup system. So, what is the example of backup and restore system?

16th Apr 2018, 10:01 AM
Khan Sunny
Khan Sunny - avatar
1 Answer
+ 1
This works great and handles many cases other packages do not: https://github.com/ifsnop/mysqldump-php For restoring see the Wiki page: https://github.com/ifsnop/mysqldump-php/wiki/Importing-dump-from-php If you need not only file-based Backups, but cloud storage or other fancy features I'd recommend simply searching GitHub or packagist for the features you need
14th May 2018, 11:29 AM
Mario