Back to Ohmyzsh

MySQL-Macports plugin

plugins/mysql-macports/README.md

latest1.0 KB
Original Source

MySQL-Macports plugin

This plugin adds aliases for some of the commonly used MySQL commands when installed using MacPorts on macOS.

To use it, add mysql-macports to the plugins array in your zshrc file:

zsh
plugins=(... mysql-macports)

For instructions on how to install MySQL using MacPorts, read the MacPorts wiki.

Aliases

AliasCommandDescription
mysqlstartsudo /path/to/mysql.server startStart the MySQL server.
mysqlstopsudo /path/to/mysql.server stopStop the MySQL server.
mysqlrestartsudo /path/to/mysql.server restartRestart the MySQL server.
mysqlstatusmysqladmin5 -u root -p pingCheck whether the MySQL server is running.