]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/mysql-macports/README.md
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / mysql-macports / README.md
1 # MySQL-Macports plugin
2
3 This plugin adds aliases for some of the commonly used [MySQL](https://www.mysql.com/) commands when installed using [MacPorts](https://www.macports.org/) on macOS.
4
5 To use it, add `mysql-macports` to the plugins array in your zshrc file:
6
7 ```zsh
8 plugins=(... mysql-macports)
9 ```
10
11 For instructions on how to install MySQL using MacPorts, read the [MacPorts wiki](https://trac.macports.org/wiki/howto/MySQL/).
12
13 ## Aliases
14
15 | Alias        | Command                              | Description                                |
16 | ------------ | ------------------------------------ | ------------------------------------------ |
17 | mysqlstart   | `sudo /path/to/mysql.server start`   | Start the MySQL server.                    |
18 | mysqlstop    | `sudo /path/to/mysql.server stop`    | Stop the MySQL server.                     |
19 | mysqlrestart | `sudo /path/to/mysql.server restart` | Restart the MySQL server.                  |
20 | mysqlstatus  | `mysqladmin5 -u root -p ping`        | Check whether the MySQL server is running. |