# For a more info consult the file COPYRIGHT distributed with this file
# For a more info consult the file COPYRIGHT distributed with this file
# This script writes on stdout SQL commands to generate all not
# This script writes on stdout SQL commands to generate all not
...
@@ -12,7 +11,7 @@
...
@@ -12,7 +11,7 @@
# $3 - hostname
# $3 - hostname
# $4 - windows option
# $4 - windows option
if test x$1= x"";
if test"$1"=""
then
then
echo"
echo"
This script writes on stdout SQL commands to generate all not
This script writes on stdout SQL commands to generate all not
...
@@ -20,9 +19,9 @@ existing MySQL system tables. It also replaces the help tables with
...
@@ -20,9 +19,9 @@ existing MySQL system tables. It also replaces the help tables with
new context from the manual (from fill_help_tables.sql).
new context from the manual (from fill_help_tables.sql).
Usage:
Usage:
mysql_create_system_tables {help|real|verbose} <path to mysql-database directory> <hostname> <windows option>
mysql_create_system_tables [test|verbose|real] <path to mysql-database directory> <hostname> <windows option>
";
"
exit;
exit
fi
fi
mdata=$2
mdata=$2
...
@@ -44,7 +43,7 @@ i_ht=""
...
@@ -44,7 +43,7 @@ i_ht=""
# Check for old tables
# Check for old tables
if test!-f$mdata/db.frm
if test!-f$mdata/db.frm
then
then
if test x$1= x"verbose";then
if test"$1"="verbose";then
echo"Preparing db table" 1>&2;
echo"Preparing db table" 1>&2;
fi
fi
...
@@ -76,7 +75,7 @@ fi
...
@@ -76,7 +75,7 @@ fi
if test!-f$mdata/host.frm
if test!-f$mdata/host.frm
then
then
if test x$1= x"verbose";then
if test"$1"="verbose";then
echo"Preparing host table" 1>&2;
echo"Preparing host table" 1>&2;
fi
fi
...
@@ -102,7 +101,7 @@ fi
...
@@ -102,7 +101,7 @@ fi
if test!-f$mdata/user.frm
if test!-f$mdata/user.frm
then
then
if test x$1= x"verbose";then
if test"$1"="verbose";then
echo"Preparing user table" 1>&2;
echo"Preparing user table" 1>&2;
fi
fi
...
@@ -142,7 +141,7 @@ then
...
@@ -142,7 +141,7 @@ then
c_u="$c_u )"
c_u="$c_u )"
c_u="$c_u comment='Users and global privileges';"
c_u="$c_u comment='Users and global privileges';"
if test x$1= x"test"
if test"$1"="test"
then
then
i_u="INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);
i_u="INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);
INSERT INTO user VALUES ('$hostname','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);
INSERT INTO user VALUES ('$hostname','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);