hnhdigital-os / mysql-helper
提供同步、克隆和备份本地及远程数据库的辅助工具。
0.1.21
2019-07-26 02:41 UTC
Requires
- php: ^7.1.3
- hnhdigital-os/php-cli-helper: ^1.0
- illuminate/database: 5.8.*
- laravel-zero/framework: 5.8.*
- nunomaduro/laravel-console-menu: ^2.1
- padraic/phar-updater: ^1.0.6
- symfony/process: ^4.2
- symfony/yaml: ^4.2
- vlucas/phpdotenv: ^3.4
- zendframework/zend-text: ^2.7
Requires (Dev)
- mockery/mockery: ^1.0
- phpmd/phpmd: ~2.0
- phpunit/phpunit: ^8.2
- squizlabs/php_codesniffer: ~3.0
README
_ _ _
| | | | | |
_ __ ___ _ _ ___ __ _| |______| |__ ___| |_ __ ___ _ __
| '_ ` _ \| | | / __|/ _` | |______| '_ \ / _ \ | '_ \ / _ \ '__|
| | | | | | |_| \__ \ (_| | | | | | | __/ | |_) | __/ |
|_| |_| |_|\__, |___/\__, |_| |_| |_|\___|_| .__/ \___|_|
__/ | | | | |
|___/ |_| |_|
提供同步、克隆和备份本地及远程数据库的辅助工具。
此软件包由澳大利亚精品开发商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)。有关更多信息,请参阅许可证文件。