Skip to content

Commit 3e382a2

Browse files
author
Shishir Jaiswal
committed
Merge branch 'mysql-5.5' into mysql-5.6
2 parents 083a3cc + 788fb5b commit 3e382a2

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

mysql-test/mysql-test-run.pl

+11
Original file line numberDiff line numberDiff line change
@@ -2546,6 +2546,17 @@ sub environment_setup {
25462546
"$basedir/storage/myisam/myisampack",
25472547
"$basedir/myisam/myisampack"));
25482548

2549+
# ----------------------------------------------------
2550+
# mysqlaccess
2551+
# ----------------------------------------------------
2552+
my $mysqlaccess=
2553+
mtr_pl_maybe_exists("$bindir/scripts/mysqlaccess") ||
2554+
mtr_pl_maybe_exists("$path_client_bindir/mysqlaccess");
2555+
if ($mysqlaccess)
2556+
{
2557+
$ENV{'MYSQLACCESS'}= $mysqlaccess;
2558+
}
2559+
25492560
# ----------------------------------------------------
25502561
# mysqlhotcopy
25512562
# ----------------------------------------------------

scripts/mysqlaccess.sh

+11-4
Original file line numberDiff line numberDiff line change
@@ -477,15 +477,22 @@ MySQLaccess::Report::Print_Header();
477477
# *****************************
478478
# Read configuration-file
479479
MySQLaccess::Debug::Print(1, "Reading configuration file...");
480-
if (-f "./$script_conf") {
481-
require "./$script_conf";
482-
}
483-
elsif (-f "@sysconfdir@/$script_conf") {
480+
if (-f "@sysconfdir@/$script_conf") {
481+
print "Configuration file '$script_conf' is found in '@sysconfdir@/'\n";
484482
require "@sysconfdir@/$script_conf";
485483
}
486484
elsif (-f "/etc/$script_conf") {
485+
print "Configuration file '$script_conf' is found in '/etc/'\n";
487486
require "/etc/$script_conf";
488487
}
488+
elsif (-f "./$script_conf") {
489+
print "\nERROR! Configuration file '$script_conf' is found in the current ";
490+
print "directory.\nThe permissible locations for this file are either ";
491+
print "@sysconfdir@/ or /etc/\n";
492+
print "Please move it to one of these locations and retry.\n\n";
493+
exit 0;
494+
}
495+
489496
490497
# ****************************
491498
# Read in all parameters

0 commit comments

Comments
 (0)