1 # MySQL-Macports plugin
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.
5 To use it, add `mysql-macports` to the plugins array in your zshrc file:
8 plugins=(... mysql-macports)
11 For instructions on how to install MySQL using MacPorts, read the [MacPorts wiki](https://trac.macports.org/wiki/howto/MySQL/).
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. |