<?php class Backup { /** * @var stores the options */ var $config; /** * @var stores the final sql dump */ var $dump; /** * @var stores the table structure + inserts for every table */ var $struktur = array(); /** * @var zip file name */ var $datei; /** * this function is the constructor and phrase the options * and connect to the database * @return */ public function Backup($options) { // write options foreach($options AS $name => $value) { $this->config[$name] = $value; }
This is a very useful PHP backup class for the entire MySQL database. Friends who need it can download and use it
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
11 Jun 2018
The example of this article describes the implementation of MySQL database backup class in PHP. Share it with everyone for your reference. The specific analysis is as follows: This is a very simple class file that uses PHP to back up mysql database. We only need to simply configure the connection address, username and database.
29 Jul 2016
postgresql database: postgresql database php implements mysql database backup class: 1. To instantiate DbBak, you need to tell it two things: where the data server is ($connectid) and which directory to back up to ($backupDir): require_once('DbBak.php') ; require_once('TableBak.php'); $connectid = mysql_connect('localhost','root','123456'); $backupDir =
25 Jul 2016
PHP database backup class Share a good PHP database backup class
29 Nov 2016
Function name: table2sql() Function: Convert the table structure into SQL Function parameters: $table: The name of the table to be extracted Return value: Return the extracted result, SQL set Function author: heiyeluren
25 Jul 2016
PHP data backup: single table backup, entire table backup, import database
25 Jul 2016
php Mysql database backup class and calling method
Hot Tools
PHP library for dependency injection containers
PHP library for dependency injection containers
A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking
Small PHP library for optimizing images
Small PHP library for optimizing images