File tree 2 files changed +22
-4
lines changed
2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -2546,6 +2546,17 @@ sub environment_setup {
2546
2546
" $basedir /storage/myisam/myisampack" ,
2547
2547
" $basedir /myisam/myisampack" ));
2548
2548
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
+
2549
2560
# ----------------------------------------------------
2550
2561
# mysqlhotcopy
2551
2562
# ----------------------------------------------------
Original file line number Diff line number Diff line change @@ -477,15 +477,22 @@ MySQLaccess::Report::Print_Header();
477
477
# *****************************
478
478
# Read configuration-file
479
479
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" ;
484
482
require " @sysconfdir@/$script_conf " ;
485
483
}
486
484
elsif (-f " /etc/$script_conf " ) {
485
+ print " Configuration file '$script_conf ' is found in '/etc/'\n" ;
487
486
require " /etc/$script_conf " ;
488
487
}
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
+
489
496
490
497
# ****************************
491
498
# Read in all parameters
You can’t perform that action at this time.
0 commit comments