Home PHP Libraries Other libraries php backup entire MySQL database class
php backup entire MySQL database class
<?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

Disclaimer

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

PHP implements MySQL database backup class PHP implements MySQL database backup class

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.

postgresql database php implements mysql database backup class postgresql database php implements mysql database backup class

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 =

PHP database backup class Share a good PHP database backup class PHP database backup class Share a good PHP database backup class

25 Jul 2016

PHP database backup class Share a good PHP database backup class

php backup database class php backup database 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

PHP data backup: single table backup, entire table backup, import database PHP data backup: single table backup, entire table backup, import database

25 Jul 2016

PHP data backup: single table backup, entire table backup, import database

php Mysql database backup class and calling method php Mysql database backup class and calling method

25 Jul 2016

php Mysql database backup class and calling method

See all articles