2015-02-23 11:32:53 +00:00
|
|
|
We have, for security hardening reasons, changed upstream sources to never
|
|
|
|
create the test database in 5.7. This patch is a backport from 5.7.
|
|
|
|
|
|
|
|
The patch in Fedora is the same that we apply in our own repos. Debian and
|
|
|
|
Ubuntu are also skipping creation of the test database, so we're trying
|
|
|
|
to align across distros in this issue.
|
|
|
|
|
2014-02-03 17:35:20 +00:00
|
|
|
diff --git a/scripts/mysql_install_db.pl.in b/scripts/mysql_install_db.pl.in
|
2014-07-31 11:05:18 +00:00
|
|
|
index 1fa5164..4aa49ca 100644
|
2014-02-03 17:35:20 +00:00
|
|
|
--- a/scripts/mysql_install_db.pl.in
|
|
|
|
+++ b/scripts/mysql_install_db.pl.in
|
2014-07-31 11:05:18 +00:00
|
|
|
@@ -113,6 +113,7 @@ EOF2
|
2014-02-03 17:35:20 +00:00
|
|
|
print <<EOF3;
|
|
|
|
--rpm For internal use. This option is used by RPM files
|
|
|
|
during the MySQL installation process.
|
|
|
|
+ Implies --keep-my-cnf option.
|
|
|
|
--skip-name-resolve Use IP addresses rather than hostnames when creating
|
|
|
|
grant table entries. This option can be useful if
|
|
|
|
your DNS does not work.
|
2014-07-31 11:05:18 +00:00
|
|
|
@@ -439,7 +440,7 @@ if ( $opt->{srcdir} and $opt->{basedir} )
|
2014-02-03 17:35:20 +00:00
|
|
|
{
|
|
|
|
error($opt,"Specify either --basedir or --srcdir, not both");
|
|
|
|
}
|
2014-07-31 11:05:18 +00:00
|
|
|
-if ( $opt->{'keep-my-cnf'} )
|
2014-02-03 17:35:20 +00:00
|
|
|
+if ( $opt->{rpm} || $opt->{'keep-my-cnf'} )
|
|
|
|
{
|
2014-07-31 11:05:18 +00:00
|
|
|
$keep_my_cnf = 1;
|
2014-02-03 17:35:20 +00:00
|
|
|
}
|
2014-07-31 11:05:18 +00:00
|
|
|
@@ -664,7 +665,7 @@ if ( $opt->{'skip-name-resolve'} and $resolved and $resolved =~ /\s/ )
|
2014-02-03 17:35:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
-# Create database directories mysql & test
|
|
|
|
+# Create database directory mysql
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
# FIXME The shell variant uses "mkdir -p":
|
2014-07-31 11:05:18 +00:00
|
|
|
@@ -697,7 +698,7 @@ if ($opt_user)
|
2014-02-03 17:35:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" )
|
|
|
|
+foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql")
|
|
|
|
{
|
|
|
|
mkdir($dir, 0700) unless -d $dir;
|
|
|
|
if ($opt_user and -w "/")
|