Skip to main content

Simple CLI tool to create and delete easily MySQL databases.

Project description

MysqlRocket is a Simple CLI tool to create and delete easily MySQL databases.

usage: mysqlrocket [-h] [-v] [-u U] [-H H] [-p P] {bk,dp,mk,ls,rm,st} …

mysqlrocket commands are:

  • bk Backup all databases on MySQL server

  • dp Dump and gzip a MySQL database

  • mk Create a MySQL database with an dedicated user and a random password

  • ls Show databases on MySQL server

  • rm Delete a MySQL database

  • st Check your mysqlrocket config and MySQL server connectivity

Optional arguments:

  • -h, –help show this help message and exit

  • -v, –version Show program version.

  • -u U mysql user

  • -H H mysql host

  • -p P mysql password

See ‘mysqlrocket <command> -h’ for more information on a specific command.

PyPI package http://pypi.python.org/pypi/mysqlrocket

Sources https://github.com/cypx/mysqlrocket

Installation

Install it easily:

Using pip

$ pip install mysqlrocket

Using easy_install

On most Linux distribution

$ easy_install mysqlrocket

But on some, prerequisites are required, for example, on Debian 6

$ aptitude install python-pip python2.6-mysqldb

(mysqldb could not be installed by easy_install cause of some system dependencies)

Examples

Create a new database

Create a new database whith an associated user account using the same name and a random password

$ mysqlrocket mk new_database

Create a new database whith an associated user account using the same name and force password

$ mysqlrocket mk new_database -f new_password

Backup databases

Dump all databases avalaible on your server to the current directory

$ mysqlrocket bk

Dump database

Dump a databases to the current directory

$ mysqlrocket dp

Show all databases

Show all databases avalaible on your server

$ mysqlrocket ls

Remove a database

Remove a database and all user account with the same name if they exist

$ mysqlrocket rm test_database

Check mysqlrocket configuration

Check your mysqlrocket config file and MySQL server connectivity

$ mysqlrocket st

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mysqlrocket-0.0.14.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file mysqlrocket-0.0.14.tar.gz.

File metadata

File hashes

Hashes for mysqlrocket-0.0.14.tar.gz
Algorithm Hash digest
SHA256 8f9161972fa7e9faf094e87ba4aebbe17ab0271405d358d4ee82596fd1931034
MD5 28b94b6d4dd1d437a121b4c4737ed0c9
BLAKE2b-256 47bf53bf152b32e75cfd128d8a72f61f1e098eb135b346ca77241ae2576f4127

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page