Commit f56df164 authored by monty@mysql.com's avatar monty@mysql.com

ke it possible to use mysys functions in netware/mysql_test_run.c

Don't pass --user to mysqld if --user is not used
parent 82a30d38
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
if HAVE_NETWARE if HAVE_NETWARE
INCLUDES = -I$(srcdir)/../include -I../include -I.. INCLUDES = -I$(srcdir)/../include -I../include -I..
LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
../dbug/libdbug.a ../strings/libmystrings.a
bin_PROGRAMS = mysqld_safe mysql_install_db mysql_test_run libmysql bin_PROGRAMS = mysqld_safe mysql_install_db mysql_test_run libmysql
mysqld_safe_SOURCES= mysqld_safe.c my_manage.c mysqld_safe_SOURCES= mysqld_safe.c my_manage.c
mysql_install_db_SOURCES= mysql_install_db.c my_manage.c mysql_install_db_SOURCES= mysql_install_db.c my_manage.c
......
...@@ -16,20 +16,15 @@ ...@@ -16,20 +16,15 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <stdlib.h> #include <my_global.h>
#include <stdio.h> #include <m_string.h>
#include <errno.h>
#include <dirent.h> #include <dirent.h>
#include <string.h>
#include <screen.h> #include <screen.h>
#include <nks/vm.h> #include <nks/vm.h>
#include <ctype.h> #include <ctype.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mode.h> #include <sys/mode.h>
#include "my_config.h"
#include "my_manage.h" #include "my_manage.h"
/****************************************************************************** /******************************************************************************
...@@ -1271,4 +1266,3 @@ int main(int argc, char **argv) ...@@ -1271,4 +1266,3 @@ int main(int argc, char **argv)
return 0; return 0;
} }
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
in_rpm=0 in_rpm=0
windows=0 windows=0
defaults="" defaults=""
user=""
case "$1" in case "$1" in
-IN-RPM) -IN-RPM)
in_rpm="1"; shift in_rpm="1"; shift
...@@ -334,10 +335,14 @@ then ...@@ -334,10 +335,14 @@ then
c_c="$c_c comment='Column privileges';" c_c="$c_c comment='Column privileges';"
fi fi
if test -n "$user"; then
args="$args --user=$user"
fi
echo "Installing all prepared tables" echo "Installing all prepared tables"
if eval "$mysqld $defaults $mysqld_opt --bootstrap --skip-grant-tables \ if eval "$mysqld $defaults $mysqld_opt --bootstrap --skip-grant-tables \
--basedir=$basedir --datadir=$ldata --skip-innodb --skip-bdb \ --basedir=$basedir --datadir=$ldata --skip-innodb --skip-bdb \
--user=$user $args" << END_OF_DATA $extra_arg $args" << END_OF_DATA
use mysql; use mysql;
$c_d $c_d
$i_d $i_d
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment