承接 srimaln91/sql-dumper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

srimaln91/sql-dumper

Composer 安装命令:

composer require srimaln91/sql-dumper

包简介

A PHP console application to execute batch of shell commands to versioning wordpress database and source code

README 文档

README

A PHP command line application to dump databases into your source code. This can be very useful if you need to version control your database along with the source code.

Getting Started

This package is available on packagist. You can use following commands to add this package into your composer dev dependancies.

composer require srimaln91/sql-dumper --dev

Prerequisites

You need to have mysql and mysqldump binaries installed on your system. This package uses native mysql binaries to create and restore dumps.

Installing

Please follow below steps to configure this application.

composer require srimaln91/sql-dumper --dev

Configuration

You need to create a config.yml file in your project root. Below is the default config file.

---
database:
  hostname: localhost
  database: xxxxx
  username: xxxxx
  password: xxx
  port: 3306
binaries:
  mysql: "/usr/bin/mysql"
  git: "/usr/bin/git"
directory:
  db: "/path/to/your/dump/directory/"

How to generate a database dump

You can execute below command to create a new dump or update an existing dump directory

vendor/bin/application db:dump

How to restore a database dump

Please use below command

vendor/bin/application db:restore

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL
  • 更新时间: 2017-09-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固