定制 jordanbrauer/deployer-mysql 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jordanbrauer/deployer-mysql

Composer 安装命令:

composer require jordanbrauer/deployer-mysql

包简介

An unofficial Deployer recipe containing a set of useful tasks for interacting with MySQL locally & remotely.

README 文档

README

An unofficial Deployer recipe containing a set of useful tasks for interacting with MySQL locally & remotely.

Usage

Installation

Install via Composer as a dev' dependency to your project.

$ composer require --dev jordanbrauer/deployer-mysql

Basic Setup

Add the following to your deployer config;

require_once "mysql.php";

set("mysql", array(
  "host" => "localhost",
  "port" => 3306,
  "schema" => "your_database_name",
  "username" => "root",
  "password" => "root",
  "dump_file" => "path/to/your/dump/file.sql",
));

Additional Setup

If you want to add options (flags) to your mysqldump command task, you can do so by adding the "dump_options" key to the configuration array, like so;

set("mysql", array(
  // ...
  "dump_options" => array(
    "--skip-comments",
  ),
));

Each option you want to add must be a new entry in the array.

Note: the --skip-comments option is the only default option set. So, if you don't have any other options for your setup, you can omit this configuration key entirely.

统计信息

  • 总下载量: 448
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固