Use mysqld_safe.