mysqlcom

来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· 代码 · 共 54 行

TXT
54
字号
#!/bin/sh## /Library/StartupItems/MySQLCOM/MySQLCOM## A script to automatically start up MySQL on system bootup# for Mac OS X. This is actually just a wrapper script around# the standard mysql.server init script, which is included in# the binary distribution.## (c) 2003 MySQL AB# Written by Lenz Grimmer <lenz@mysql.com>## Suppress the annoying "$1: unbound variable" error when no option# was givenif [ -z $1 ] ; then	echo "Usage: $0 [start|stop|restart] "	exit 1fi# Source the common setup functions for startup scriptstest -r /etc/rc.common || exit 1. /etc/rc.common# The path to the mysql.server init script. The official MySQL# Mac OS X packages are being installed into /usr/local/mysql.SCRIPT="/usr/local/mysql/support-files/mysql.server"StartService (){	if [ "${MYSQLCOM:=-NO-}" = "-YES-" ] ; then		ConsoleMessage "Starting MySQL database server"		$SCRIPT start > /dev/null 2>&1	fi}StopService (){	ConsoleMessage "Stopping MySQL database server"	$SCRIPT stop > /dev/null 2>&1}RestartService (){	ConsoleMessage "Restarting MySQL database server"	$SCRIPT restart > /dev/null 2>&1}if test -x $SCRIPT ; then	RunService "$1"else	ConsoleMessage "Could not find MySQL startup script!"fi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?