nurmanhabib/mysqldump
Composer 安装命令:
composer require nurmanhabib/mysqldump
包简介
MySQL database dump. Forked from https://github.com/dg/MySQL-dump
关键字:
README 文档
README
Forked from https://github.com/dg/MySQL-dump
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.
Usage
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():
$dump->save('export.sql.gz');
Project at GitHub: http://github.com/dg/MySQL-dump
(c) David Grudl, 2008, 2013 (http://davidgrudl.com)
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3
- 更新时间: 2014-07-31