PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
  Classes of Ovidiu Lesei  >  PHP MySQLDump Table Chunks  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: PHP MySQLDump Table Chunks
Dump MySQL tables in chunks of limited size
Author: By
Last change:
Date: 5 years ago
Size: 449 bytes
 

 

Contents

Class file image Download
<?php
 
require_once './mysqlDump.php';

$mysqli = new mysqli('localhost','root','','dataBase');

$params['mysqli'] = $mysqli;
$params['database'] = 'dataBase';
$params['tableName'] = 'table';
$params['chunkPath'] = './';
$params['mysqlDump'] = '/usr/local/mysql/bin/mysqldump'; //Or mysqldump
$params['chunkSize'] = '1572864'; //~1.5 Mega
$params['username'] = 'root';
$params['password'] = '';


$dump = new mysqlDump($params);
?>