add mac mysql setting,use `uname` to distinguish mac and linux

case `uname` in
    Darwin)
        #do something in mac
        ;;
    Linux)
        #do something in Linux
        ;;