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
Show file
Open project: dg/mysql-dump
Class Usage Examples
Public Properties
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 Details
__construct()
public method
public __construct ( mysqli $connection, $charset = 'utf8' ) |
$connection |
mysqli |
|
dumpTable()
public method
Dumps table to logical file.
Writes dump to logical file.
Property Details
public array $tables |
return |
array |
|