解决方法
要在RPM运行中查看脚本:
rpm -q –scripts $INSTALLEDPACKAGE
回答你的问题:是的,MysqL-server创建了MysqL用户.
[user@server CentOS]# rpm -qp --scripts MysqL-server-5.0.77-4.el5_4.2.i386.rpm warning: MysqL-server-5.0.77-4.el5_4.2.i386.rpm: V3 DSA signature: NOKEY,key ID e8562897 preinstall scriptlet (using /bin/sh): /usr/sbin/useradd -M -o -r -d /var/lib/MysqL -s /bin/bash \ -c "MysqL Server" -u 27 MysqL > /dev/null 2>&1 || : postinstall scriptlet (using /bin/sh): if [ $1 = 1 ]; then /sbin/chkconfig --add MysqLd fi /bin/chmod 0755 /var/lib/MysqL /bin/touch /var/log/MysqLd.log preuninstall scriptlet (using /bin/sh): if [ $1 = 0 ]; then /sbin/chkconfig --del MysqLd fi postuninstall scriptlet (using /bin/sh): if [ $1 -ge 1 ]; then /sbin/service MysqLd condrestart >/dev/null 2>&1 || : fi