Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 387 | All time: 6,683 This week: 49![]() |
Version | License | PHP version | Categories | |||
db-backup-restore 1.0.0 | Custom (specified... | 5 | PHP 5, Databases, Systems administration |
Description | Author | |
This class can backup and restore MySQL database dumping SQL file. |
MySQL Database Backup/Restore scripts
I want PHP scripts to backup and restore MySQL database on a Mac
DB BackUp and Restore Class
A PHP Class that helps take backup of DB as well as restore from backup.
You will need PHP 7.x and composer.
Install using composer: composer require djunehor/db-backup-restore
use \Djunehor\DB\BackUp;
/
*
*
* @param string $host
* @param string $username
* @param string $password
* @param string $database
* @param string $charset
* @param string $lang
*/
$db = new BackUp( 'localhost', 'root', '', 'test', 'utf8', 'en' );
// To backup DB
$db->backup ();
//To restore from backup
$db->restore ( __DIR__.'/backup/20121027194215_all_v1.sql')
Adapted from the class created by yanue
Check out the issues on GitHub and/or make a pull request to contribute!
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.