Compare commits
No commits in common. "v962" and "v963" have entirely different histories.
@ -11,5 +11,6 @@ console none
|
|||||||
script
|
script
|
||||||
source /etc/init/functions
|
source /etc/init/functions
|
||||||
source /etc/sysconfig/profile.d/MySQL
|
source /etc/sysconfig/profile.d/MySQL
|
||||||
|
/sbin/CheckPid /var/run/mysql.pid
|
||||||
su - mysql -c "/opt/MySQL/bin/mysqld_safe"
|
su - mysql -c "/opt/MySQL/bin/mysqld_safe"
|
||||||
end script
|
end script
|
||||||
|
@ -58,11 +58,11 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
LIBINST=`grep "/opt/MySQL/lib/mysql" /etc/ld.so.conf`
|
LIBINST=`grep "/opt/MySQL/lib" /etc/ld.so.conf`
|
||||||
if [ ! "$LIBINST" ]; then
|
if [ ! "$LIBINST" ]; then
|
||||||
echo "/opt/MySQL/lib/mysql" >>/etc/ld.so.conf
|
echo "/opt/MySQL/lib" >>/etc/ld.so.conf
|
||||||
if [ -d /opt/MySQL/lib64 ]; then
|
if [ -d /opt/MySQL/lib64 ]; then
|
||||||
echo "/opt/MySQL/lib64/mysql" >>/etc/ld.so.conf
|
echo "/opt/MySQL/lib64" >>/etc/ld.so.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if ! getent passwd mysql 2>&1 >/dev/null; then
|
if ! getent passwd mysql 2>&1 >/dev/null; then
|
||||||
@ -70,5 +70,5 @@ if ! getent passwd mysql 2>&1 >/dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir /opt/MySQL/var
|
mkdir /opt/MySQL/var
|
||||||
/opt/MySQL/bin/mysql_install_db
|
/opt/MySQL/scripts/mysql_install_db
|
||||||
chown -R mysql:daemon /opt/MySQL/var
|
chown -R mysql:daemon /opt/MySQL/var
|
||||||
|
@ -58,8 +58,8 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
sed -i -e "/\/opt\/MySQL\/lib\/mysql/d" /etc/ld.so.conf
|
sed -i -e "/\/opt\/MySQL\/lib/d" /etc/ld.so.conf
|
||||||
sed -i -e "/\/opt\/MySQL\/lib64\/mysql/d" /etc/ld.so.conf
|
sed -i -e "/\/opt\/MySQL\/lib64/d" /etc/ld.so.conf
|
||||||
if getent passwd mysql 2>&1 >/dev/null; then
|
if getent passwd mysql 2>&1 >/dev/null; then
|
||||||
userdel mysql
|
userdel mysql
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user