Created
May 11, 2012 14:13
-
-
Save shaunoconnell/2659929 to your computer and use it in GitHub Desktop.
MySQL osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mysql_server() { | |
7 if [ $# -ne 1 ]; then | |
8 echo "usage: " | |
9 echo "> mysql (start|stop)" | |
10 return 1 | |
11 fi | |
12 | |
13 case "$1" in | |
14 "start") | |
15 sudo /Library/StartupItems/MySQLCOM/MySQLCOM start | |
16 ;; | |
17 "stop") | |
18 sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop | |
19 ;; | |
20 *) | |
21 echo "Unknown param: $1" | |
22 echo "usage: " | |
23 echo "> mysql (start|stop)" | |
24 ;; | |
25 esac | |
26 | |
27 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment