2017 © Pedro Peláez
 

library deployer-mysql

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

image

jordanbrauer/deployer-mysql

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

  • Wednesday, October 18, 2017
  • by jordanbrauer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

deployer-mysql

An unofficial Deployer recipe containing a set of useful tasks for interacting with MySQL locally & remotely., (*1)

Usage

Installation

Install via Composer as a dev' dependency to your project., (*2)

$ composer require --dev jordanbrauer/deployer-mysql

Basic Setup

Add the following to your deployer config;, (*3)

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;, (*4)

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

Each option you want to add must be a new entry in the array., (*5)

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., (*6)

The Versions

18/10 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

by Avatar jordanbrauer

18/10 2017

1.0.1

1.0.1.0

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

  Sources   Download

MIT

by Avatar jordanbrauer

18/10 2017

1.0.0

1.0.0.0

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

  Sources   Download

MIT

by Avatar jordanbrauer