problem with mysql startup script on server
I'm configuring a server to run mysql & php.
They both worked fine together last I looked. But that was only after I manually started the mysql server. I followed the instructions from mysql.org and copied they're mysql.server startup script into the appropriate directory (/etc/init.d/mysql) and linked to it from /etc/rc3.d/S99mysql and /etc/rc0.d/K01mysql as per the instructions.
Well every time I try to manually run the script (@> /etc/init.d/mysql start) to get the server to start it says that mysqld_safe is not an executable file or doesn't exist. I've checked & double checked & it does exist & is an executable script to start the mysqld server daemon.
The call inside the script looks like this:
...
$bindir/mysqld_safe --datadir=$datadir \
--pid-file=$pid_file >/dev/null 2>&1 &
...
It looks as if it's calling the script sending stdout to the pit and sending stderr to the screen, then the ' &' is supposed to make the process run in the background.
When I ran the code with the verbose option it spit this out:
...
+ /usr/local/mysql-x.x.xx/bin/mysqld_safe --datadir=/usr/local/mysql-x.x.xx/data --pid-file=/usr/local/mysql-x.x.xx/data/lmc1.pid
+ 1> /dev/null 2>& 1
...
It looks as if it's treating the commands separately, but I'm not sure if the second part is what is supposed to happen. And where the heck did the ' &' at the end go (to run the cmd in the background)???
I'm fairly new to Linux, so any help would be greatly appreciated.
|