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] {mk,ls,rm,st} …
mysqlrocket commands are:
mk Create a MySQL database
ls Show databases on MySQL server
rm Delete a MySQL database
status 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 autoenv
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 test_database
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mysqlrocket-0.0.10.tar.gz
.
File metadata
- Download URL: mysqlrocket-0.0.10.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c274bef53563b91fa46192522d13cb88554a63e383d26ae99a2079fb7574c09e |
|
MD5 | 25b962b622eb27b4d2476767519e1bab |
|
BLAKE2b-256 | db6d2daafa5b02f0c2a90bc336c2e9f7140b9d3dad20e52a3fe003f48111acd8 |