| Server IP : 112.74.42.100 / Your IP : 216.73.216.142 Web Server : nginx/1.20.2 System : Linux iZwz96lx4pjqiy84w4hni7Z 5.10.134-17.3.al8.x86_64 #1 SMP Thu Oct 31 14:29:57 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/mysql-test/include/ |
Upload File : |
# MTR "subroutine" which checks the output from mysqld --help
# --verbose to check if the deduced values for --basedir,
# --lc-messages-dir, --character-sets-dir and --plugin-dir have
# "reasonable" values. By reasonable is meant that the path exists and
# contains some key file/directory which is expected to be there.
#
# Note that the deduced value for --character-sets-dir and
# --plugin-dir is currently wrong when running from a sandbox build
# dir, so we just print the ok string anyway in this case
#
# Usage: Assign the MTR variable HELP_VERBOSE_OUTPUT to a file which contains
# the help output, then source this file.
--echo # Checking HELP_VERBOSE_OUTPUT
--perl
use strict;
#use Dumpvalue;
#my $dumper = Dumpvalue->new;
#$dumper->dumpValue(\%ENV);
$_= $ENV{'MYSQLD'};
my $in_cbd= m!/sql/! || m!/runtime_output_directory/!;
#print "# DBG: \$in_cbd: $in_cbd\n";
my $mysqld_out= $ENV{'HELP_VERBOSE_OUTPUT'};
open(MYSQLD_OUT, $mysqld_out);
while(<MYSQLD_OUT>)
{
if (/^basedir\s+(\S+)$/)
{
my $bd= $1;
if (-d "$bd/share") {
print "# basedir looks ok\n";
next;
}
print "# ERROR: No share directory in basedir $bd\n";
next;
}
if (/^character-sets-dir\s+(\S+)$/)
{
my $csd= $1;
if (-f "$csd/ascii.xml" || $in_cbd) {
print "# character-sets-dir is as expected\n";
next;
}
print "# ERROR: No ascii.xml in character-sets-dir $csd\n";
next;
}
if (/^lc-messages-dir\s+(\S+)$/)
{
my $lmd= $1;
if (-d "$lmd/english") {
print "# lc-messages-dir looks ok\n";
next;
}
print "# ERROR: No english directory in lc-messages-dir $lmd\n";
next;
}
if (/^plugin-dir\s+(\S+)$/)
{
my $pd= $1;
if (-B "$pd/auth.so" || -B "$pd/auth.dll" || $in_cbd) {
print "# plugin-dir is as expected\n";
next;
}
print "# ERROR: No auth dll in plugin-dir $pd\n";
next;
}
}
close(MYSQLD_OUT);
EOF
--echo # HELP_VERBOSE_OUTPUT check finished
--echo #