hnhdigital-os/mysql-helper

提供同步、克隆和备份本地及远程数据库的辅助工具。

安装: 1

依赖: 0

建议: 0

安全: 0

星级: 18

关注者: 1

分支: 0

开放问题: 0

类型:项目

0.1.21 2019-07-26 02:41 UTC

This package is auto-updated.

Last update: 2024-08-27 13:31:11 UTC


README

                           _        _          _
                          | |      | |        | |
 _ __ ___  _   _ ___  __ _| |______| |__   ___| |_ __   ___ _ __
| '_ ` _ \| | | / __|/ _` | |______| '_ \ / _ \ | '_ \ / _ \ '__|
| | | | | | |_| \__ \ (_| | |      | | | |  __/ | |_) |  __/ |
|_| |_| |_|\__, |___/\__, |_|      |_| |_|\___|_| .__/ \___|_|
            __/ |       | |                     | |
           |___/        |_|                     |_|

提供同步、克隆和备份本地及远程数据库的辅助工具。

Latest Stable Version License: MIT Donate to this project using Patreon

Build Status StyleCI Test Coverage Issue Count Code Climate

此软件包由澳大利亚精品开发商H&H|Digital开发。访问我们网站:hnh.digital

需求

  • PHP 7.1.3(最低要求)
  • zip
  • pv
  • mysql
  • php-ssh2

安装

通过命令行

bash <(curl -s https://hnhdigital-os.github.io/mysql-helper/builds/install)

下载最新构建版本

curl -o ./mysql-helper -LSs https://github.com/hnhdigital-os/mysql-helper/raw/master/builds/mysql-helper chmod a+x ./mysql-helper

移动到本地bin目录

mv ./mysql-helper /usr/local/bin/mysql-helper

运行安装命令以自动安装依赖项。注意:当前此功能仅适用于Debian(使用apt-get)。请查看软件要求以手动安装。

mysql-helper install

运行配置命令以设置配置文件,并添加本地和远程连接。

mysql-helper configure

更新

此工具提供自更新机制。只需运行自更新命令。

mysql-helper self-update

如何使用

USAGE: mysql-helper <command> [options] [arguments]
  backup      Backup a specific local database
  clone       Clone database from one to another
  configure   Configure profiles and connections
  display     List databases available to this connection
  install     Install system requirements
  restore     Restore a specific local database

贡献

请参阅CONTRIBUTING以获取详细信息。

鸣谢

许可证

MIT许可证(MIT)。有关更多信息,请参阅许可证文件