PHP Class MySQLDump

Here is an inline example: $connection = @mysql_connect($dbhost,$dbuser,$dbpsw); $dumper = new MySQLDump($dbname,'filename.sql',false,false); $dumper->doDump(); Special thanks to: - Andrea Ingaglio helping in development of all class code - Dylan Pugh for precious advices halfing the size of the output file and for helping in debug
Author: Daniele ViganĂ² - CreativeFactory.it ([email protected])
Show file Open project: dg/mysql-dump Class Usage Examples

Public Properties

Property Type Description
$tables array

Public Methods

Method Description
__construct ( mysqli $connection, $charset = 'utf8' ) Connects to database.
dumpTable ( $handle, $table ) : void Dumps table to logical file.
save ( $file ) : void Saves dump to the file.
write ( $handle = NULL ) : void Writes dump to logical file.

Private Methods

Method Description
delimite ( $s )

Method Details

__construct() public method

Connects to database.
public __construct ( mysqli $connection, $charset = 'utf8' )
$connection mysqli

dumpTable() public method

Dumps table to logical file.
public dumpTable ( $handle, $table ) : void
return void

save() public method

Saves dump to the file.
public save ( $file ) : void
return void

write() public method

Writes dump to logical file.
public write ( $handle = NULL ) : void
return void

Property Details

$tables public property

public array $tables
return array