Skip to content

Instantly share code, notes, and snippets.

@shaunoconnell
Created May 11, 2012 14:13
Show Gist options
  • Save shaunoconnell/2659929 to your computer and use it in GitHub Desktop.
Save shaunoconnell/2659929 to your computer and use it in GitHub Desktop.
MySQL osx
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