Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voronkovich/mysql.plugin.zsh
ZSH plugin for MySQL.
https://github.com/voronkovich/mysql.plugin.zsh
mysql zsh-plugin
Last synced: about 1 month ago
JSON representation
ZSH plugin for MySQL.
- Host: GitHub
- URL: https://github.com/voronkovich/mysql.plugin.zsh
- Owner: voronkovich
- License: unlicense
- Created: 2013-06-07T19:13:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T03:59:25.000Z (over 2 years ago)
- Last Synced: 2024-04-15T13:22:55.339Z (9 months ago)
- Topics: mysql, zsh-plugin
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 17
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mysql.plugin.zsh
ZSH plugin for [MySQL](https://mysql.com).
## Installation
### [Antigen](https://github.com/zsh-users/antigen)
```sh
antigen bundle voronkovich/mysql.plugin.zsh
```
### [Zplug](https://github.com/zplug/zplug)```sh
zplug "voronkovich/mysql.plugin.zsh"
```### [Oh My Zsh](https://github.com/ohmyzsh/ohmyzsh)
```sh
git clone https://github.com/voronkovich/mysql.plugin.zsh ~/.oh-my-zsh/custom/plugins/mysql
```Edit `.zshrc` to enable the plugin:
```sh
plugins=(... mysql)
```### Manual
Clone this repo and add this into your `.zshrc`:
```sh
source path/to/cloned/repo/mysql.plugin.zsh
```Add your mysql credentials into the ~/.my.cnf:
```
[client]
user=your_user
password=your_password
```## Aliases and functions
+ my - alias for mysql;
+ mys - alias for mysqlshow;
+ mycu - create a new user;
+ mydu - drop a user;
+ mycd - create a new database;
+ mydd - drop a database;
+ mycud - create a new user and a database with the same name;
+ mydud - drop a user and a database with the same name;
+ mysu - show all users;
+ mytd - truncate all tables in the specified database;## License
Copyright (c) Voronkovich Oleg. Distributed under the Unlicense.