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