For New Users of MySQL
225
chown R mysql.mysql /var/lib/mysql
if [ $ret ne 0 ] ; then
return $ret
fi
fi
chown mysql.mysql /var/lib/mysql
chmod 0755 /var/lib/mysql
/usr/bin/safe_mysqld defaults file=/etc/my.cnf >/dev/null 2>&1
&
ret=$?
if [ $ret eq 0 ]; then
action $"Starting $prog: " /bin/true
else
action $"Starting $prog: " /bin/false
fi
[ $ret eq 0 ] && touch /var/lock/subsys/mysqld
return $ret
}
stop(){
/bin/kill cat /var/run/mysqld/mysqld.pid 2> /dev/null > /
dev/null 2>&1
ret=$?
if [ $ret eq 0 ]; then
action $"Stopping $prog: " /bin/true
else
action $"Stopping $prog: " /bin/false
fi
[ $ret eq 0 ] && rm f /var/lock/subsys/mysqld
[ $ret eq 0 ] && rm f /var/lib/mysql/mysql.sock
return $ret
}
restart(){
stop
start
}
condrestart(){
[ e /var/lock/subsys/mysqld ] && restart || :
}
reload(){
[ e /var/lock/subsys/mysqld ] && mysqladmin reload
}
# See how we were called.
case "$1" in
footer
Our partners:
PHP: Hypertext Preprocessor Cheap Web Hosting
JSP Web Hosting
Ontario Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Java Hosting
Cheapest Hosting
Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved