basedir= datadir= # Default value, in seconds, afterwhich the script should timeout waiting # for server start. # Value here is overriden by value in my.cnf. # 0 means don't wait at all # Negative numbers mean to wait indefinitely service_startup_timeout=900 # Lock directory for RedHat / SuSE. lockdir='/var/lock/subsys' lock_file_path="$lockdir/mysql"
其中,
basedir 指的二进制压缩包解压后所在的目录,譬如/usr/local/mysql。
datadir 指的是数据目录
service_startup_timeout=900 定义mysql服务启动的时间限制,如果在900s中没有启动成功,则该脚本会退出。
lockdir='/var/lock/subsys'
关于/var/lock/subsys,网上的解释如下,后续会用到。