Download the PHP package impactwave/mysql-tools without Composer
On this page you can find all versions of the php package impactwave/mysql-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download impactwave/mysql-tools
More information about impactwave/mysql-tools
Files in impactwave/mysql-tools
Package mysql-tools
Short Description Command-line shell scripts for managing MySQL databases on Laravel-based web applications.
License MIT
Informations about the package mysql-tools
MySQL Tools
Command-line shell scripts for managing MySQL databases.
Introduction
Backing up, restoring and copying MySQL databases via command-line is not as simple as it should be. Lots of configuration options and edge-cases make you wast time searching for anwers on Stack Overflow and require more work than it should. Specially if the server is not on the local network and must be accessed via an SSH tunnel.
This project provides a small set of Bash scripts that make these common operations trivially simple and easy.
Note: branch
laravel
(or any1.x
version) holds an old version suitable for integration with Laravel projects.The current version can be used independently of any project or progamming language. You just need Bash installed on your system.
It can be installed globally on your computer so that you can use the provided commands independently with any database, local or remote.
Installation
Installing standalone
Clone the repository somewhere on your computer.
You can then either:
- copy the files into one of the folders on your PATH, or
- add the project's directory to your environment's
PATH
variable.
The second option has the added benefit that you may update the tools to the latest version easily by issuing a git pull
command.
Installing via Composer
To install globally on your system:
If you haven't done it before, add ~/.composer/vendor/bin
to your path, so that you may execute the scripts from
anywhere on your computer.
Example:
Add this to your shell environment (ex: at ~/.profile
or ~/.bash_profile
):
export PATH=$PATH:./vendor/bin
To install on your PHP project only
Add the following to our composer.json
file:
Or, if you want the latest development version (not recommended):
Note: do not checkout
1.x
versions unless you want the Laravel-specific versions of these tools.
If you haven't done it before, add vendor/bin
to your path, so that you may execute the scripts from your project's root folder.
Usage
mysql-backup
License
MIT
The MIT License (MIT)
Copyright (c) 2014 Impactwave Lda
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.