5 if [ ! -d /var/mysql/mysql ] ; then
6 echo "Creating MySQL system tables..."
7 mysql_install_db --user=mysql --ldata=/var/mysql
10 # We don't use start-stop-daemon because mysqld has
11 # its own wrapper script.
12 echo -n "Starting mysql..."
13 /usr/bin/mysqld_safe --pid-file=/var/run/mysqld.pid &
17 echo -n "Stopping mysql..."
18 if test -f /var/run/mysqld.pid ; then
19 kill `cat /var/run/mysqld.pid`
28 echo "Usage: /etc/init.d/mysqld {start|stop|restart}"