dev-master
9999999-devMySQL database dump. Forked from https://github.com/dg/MySQL-dump
BSD-3-Clause
by David Grudl
mysql mysqldump
Wallogit.com
2017 © Pedro Peláez
MySQL database dump. Forked from https://github.com/dg/MySQL-dump
Forked from https://github.com/dg/MySQL-dump, (*1)
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., (*2)
It requires PHP 5.0.5 or later., (*3)
Create MySQLi object and pass it to the MySQLDump:, (*4)
$dump = new MySQLDump(new mysqli('localhost', 'root', 'password', 'database'));
You can optionally specify how each table or view should be exported:, (*5)
$dump->tables['search_cache'] = MySQLDump::DROP | MySQLDump::CREATE; $dump->tables['log'] = MySQLDump::NONE;
Then simply call save() or write():, (*6)
$dump->save('export.sql.gz');
Project at GitHub: http://github.com/dg/MySQL-dump, (*7)
(c) David Grudl, 2008, 2013 (http://davidgrudl.com), (*8)
MySQL database dump. Forked from https://github.com/dg/MySQL-dump
BSD-3-Clause
mysql mysqldump