MySQL database dump.

Installs: 465

Dependents: 1

Stars: 2

Watchers: 6

Forks: 12

v1.3.2 2015-04-17 18:35 UTC


This is a backup utility used to dump a database for backup or transfer to another MySQL server. The dump typically contains SQL statements to create the table, populate it, or both.

It requires PHP 5.0.5 or later.


Create MySQLi object and pass it to the MySQLDump:

$dump = new MySQLDump(new mysqli('localhost', 'root', 'password', 'database'));

You can optionally specify how each table or view should be exported:

$dump->tables['search_cache'] = MySQLDump::DROP | MySQLDump::CREATE;
$dump->tables['log'] = MySQLDump::NONE;

Then simply call save() or write():


Project at GitHub:

(c) David Grudl, 2008, 2013 (