po instalacji mysql by dingetje, przy starcie systemu (freesco 0,32) otrzymuje komunikat...
Cytuj:
Enabling NAT and firewalling... /pkg/rc/rc_mySQL: 45: Syntax error: "else" unexpected
rc_mySQL wygląda tak:
Cytuj:
#!/bin/sh
# mySQL Daemon (Startup/ShutDown/Firewall) Script
. /etc/system.cfg
fn2() { ps |sed -n '/ safe_mysql/P';}
stp() {
[ "`fn2`" ] || exit
echo -n "Stopping mySQL Daemon... "
killall mysqld -15
=
}
str() {
[ "`fn2`" ] && exit
echo -n "Starting mySQL Daemon... "
TMP=`pwd`
cd /usr/local/mySQL
./bin/safe_mysqld & >/dev/null
cd $TMP
sleep 5
= $?
}
case $1 in
boot)
echo -n "Linking bash for mySQL files... "
[ -f /bin/bash ] || ln -fs /usr/bin/bash /bin/bash
=
;;
firewall)
# Rem out next 2 lines if you want eithernet connections allowed
#ipfwadm -I -a deny -P tcp -W $INET -D 0.0.0.0/0 3306:3307 -y -o
#ipfwadm -I -a deny -P udp -W $INET -D 0.0.0.0/0 3306:3307 -y -o
;;
stop) stp;;
restart)stp;str;;
start)str;;
setup) echo "Setup of mySQL is done directly from a command line at the console";;
status) if [ "`fn2`" ]
then echo "Running mySQL "; fn2; /usr/local/mySQL/bin/mysql -V
else echo "No running mySQL"
fi;;
esac
Co począć... PRZYJACIÓŁKO poradź
