mnib-dev/mysqldump
Composer 安装命令:
composer require mnib-dev/mysqldump
包简介
A PHP wrapper around mysqldump CLI utility.
README 文档
README
chdir(__DIR__); $dump = new \MNIB\MysqlDump($dbname, $host, $port, $user, $password); // Create dump $dump->run([ 'mysqldump_bin' => '/usr/bin/mysqldump', 'file' => __DIR__ . '/dump.sql', 'archive' => __DIR__ . '/dump.sql.bz2', 'archive_pattern' => '/usr/bin/pbzip2 --compress --best -c %1$s > %2$s', 'defaults_extra_file' => __DIR__ . '/custom-my-file.cnf', 'max_allowed_packet' => '512M', 'dump_type' => null, // Valid options: null, "schema" or "data" 'selected_tables' => [ 'product', ], 'ignored_tables' => [ 'orders', ], ]);
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-02