Commit 193bfdd8 authored by Rucha Deodhar's avatar Rucha Deodhar

MDEV-22010: use executables MariaDB named in scripts

As a part of this MDEV following changes were made:
1) Mariadb named executables used instead of mysql named executables in scripts
2) renamed mysql-test-run and mysql-stress-test to mariadb-test-run and
mariadb-stress-test and created a symlink.
parent cb0cad81
...@@ -90,6 +90,9 @@ mysql-test/lib/My/SafeProcess/my_safe_process ...@@ -90,6 +90,9 @@ mysql-test/lib/My/SafeProcess/my_safe_process
mysql-test/lib/My/SafeProcess/wsrep_check_version mysql-test/lib/My/SafeProcess/wsrep_check_version
mysql-test/mtr mysql-test/mtr
mysql-test/mysql-test-run mysql-test/mysql-test-run
mysql-test/mariadb-test-run
mysql-test/mysql-stress-test.pl
mysql-test/mysql-test-run.pl
mysql-test/var* mysql-test/var*
mysql-test-gcov.err mysql-test-gcov.err
mysql-test-gcov.msg mysql-test-gcov.msg
......
...@@ -25,7 +25,6 @@ usr/share/man/man1/mariadb-client-test-embedded.1 ...@@ -25,7 +25,6 @@ usr/share/man/man1/mariadb-client-test-embedded.1
usr/share/man/man1/mariadb-client-test.1 usr/share/man/man1/mariadb-client-test.1
usr/share/man/man1/mariadb-test-embedded.1 usr/share/man/man1/mariadb-test-embedded.1
usr/share/man/man1/mariadb-test.1 usr/share/man/man1/mariadb-test.1
usr/share/man/man1/mysql-stress-test.pl.1
usr/share/man/man1/mysql-test-run.pl.1 usr/share/man/man1/mysql-test-run.pl.1
usr/share/man/man1/mysql_client_test.1 usr/share/man/man1/mysql_client_test.1
usr/share/man/man1/mysql_client_test_embedded.1 usr/share/man/man1/mysql_client_test_embedded.1
...@@ -36,8 +35,9 @@ usr/share/mysql/mysql-test/README-gcov ...@@ -36,8 +35,9 @@ usr/share/mysql/mysql-test/README-gcov
usr/share/mysql/mysql-test/README.stress usr/share/mysql/mysql-test/README.stress
usr/share/mysql/mysql-test/dgcov.pl usr/share/mysql/mysql-test/dgcov.pl
usr/share/mysql/mysql-test/lib usr/share/mysql/mysql-test/lib
usr/share/mysql/mysql-test/mysql-stress-test.pl usr/share/mysql/mysql-test/mariadb-stress-test.pl
usr/share/mysql/mysql-test/mysql-test-run.pl usr/share/mysql/mysql-test/mysql-test-run.pl
usr/share/mysql/mysql-test/mariadb-test-run.pl
usr/share/mysql/mysql-test/purify.supp usr/share/mysql/mysql-test/purify.supp
usr/share/mysql/mysql-test/suite.pm usr/share/mysql/mysql-test/suite.pm
usr/share/mysql/mysql-test/valgrind.supp usr/share/mysql/mysql-test/valgrind.supp
...@@ -2,5 +2,7 @@ usr/bin/mariadb-client-test usr/bin/mysql_client_test ...@@ -2,5 +2,7 @@ usr/bin/mariadb-client-test usr/bin/mysql_client_test
usr/bin/mariadb-client-test-embedded usr/bin/mysql_client_test_embedded usr/bin/mariadb-client-test-embedded usr/bin/mysql_client_test_embedded
usr/bin/mariadb-test usr/bin/mysqltest usr/bin/mariadb-test usr/bin/mysqltest
usr/bin/mariadb-test-embedded usr/bin/mysqltest_embedded usr/bin/mariadb-test-embedded usr/bin/mysqltest_embedded
usr/share/mysql/mysql-test/mysql-test-run.pl usr/share/mysql/mysql-test/mtr usr/share/mysql/mysql-test/mariadb-test-run.pl usr/share/mysql/mysql-test/mysql-test-run.pl
usr/share/mysql/mysql-test/mysql-test-run.pl usr/share/mysql/mysql-test/mysql-test-run usr/share/mysql/mysql-test/mariadb-test-run.pl usr/share/mysql/mysql-test/mysql-test-run
usr/share/mysql/mysql-test/mariadb-test-run.pl usr/share/mysql/mysql-test/mtr
usr/share/mysql/mysql-test/mariadb-test-run.pl usr/share/mysql/mysql-test/mariadb-test-run
...@@ -19,24 +19,63 @@ INSTALL_MYSQL_TEST("." ".") ...@@ -19,24 +19,63 @@ INSTALL_MYSQL_TEST("." ".")
IF(NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) IF(NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
# Enable running mtr from build directory # Enable running mtr from build directory
CONFIGURE_FILE( CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/mtr.out-of-source ${CMAKE_CURRENT_SOURCE_DIR}/mtr.out-of-source
${CMAKE_CURRENT_BINARY_DIR}/mysql-test-run.pl ${CMAKE_CURRENT_BINARY_DIR}/mariadb-test-run.pl
@ONLY
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/mariadb-stress-test.pl
${CMAKE_CURRENT_BINARY_DIR}/mariadb-stress-test.pl
@ONLY @ONLY
) )
IF(WIN32)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/mtr.out-of-source
${CMAKE_CURRENT_BINARY_DIR}/mysql-test-run.pl
@ONLY)
ENDIF()
SET(out_of_source_build TRUE) SET(out_of_source_build TRUE)
ELSEIF(WIN32)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/mariadb-test-run.pl
${CMAKE_CURRENT_BINARY_DIR}/mysql-test-run.pl
COPYONLY)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/mariadb-stress-test.pl
${CMAKE_CURRENT_BINARY_DIR}/mysql-stress-test.pl
COPYONLY)
ENDIF() ENDIF()
IF(UNIX) IF(UNIX)
EXECUTE_PROCESS( EXECUTE_PROCESS(
COMMAND chmod +x mysql-test-run.pl COMMAND chmod +x mariadb-test-run.pl
COMMAND ${CMAKE_COMMAND} -E create_symlink WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
./mysql-test-run.pl mtr FOREACH (lnk mysql-test-run mtr mysql-test-run.pl mariadb-test-run)
COMMAND ${CMAKE_COMMAND} -E create_symlink EXECUTE_PROCESS(
./mysql-test-run.pl mysql-test-run COMMAND ${CMAKE_COMMAND} -E create_symlink
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ./mariadb-test-run.pl ${lnk}
) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
IF(INSTALL_MYSQLTESTDIR AND out_of_source_build)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mtr IF(INSTALL_MYSQLTESTDIR)
${CMAKE_CURRENT_BINARY_DIR}/mysql-test-run INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${lnk}
DESTINATION ${INSTALL_MYSQLTESTDIR}
COMPONENT Test)
ENDIF()
ENDFOREACH()
EXECUTE_PROCESS(
COMMAND chmod +x mariadb-stress-test.pl
COMMAND ${CMAKE_COMMAND} -E create_symlink
./mariadb-stress-test.pl mysql-stress-test.pl
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
ELSE()
IF(INSTALL_MYSQLTESTDIR)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/mariadb-test-run.pl
RENAME mysql-test-run.pl
DESTINATION ${INSTALL_MYSQLTESTDIR}
COMPONENT Test)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/mariadb-stress-test.pl
RENAME mysql-stress-test.pl
DESTINATION ${INSTALL_MYSQLTESTDIR} DESTINATION ${INSTALL_MYSQLTESTDIR}
COMPONENT Test) COMPONENT Test)
ENDIF() ENDIF()
...@@ -156,4 +195,3 @@ IF (MAX_INDEXES) ...@@ -156,4 +195,3 @@ IF (MAX_INDEXES)
MESSAGE(STATUS "mysql-test/include/max_indexes.inc adjusted") MESSAGE(STATUS "mysql-test/include/max_indexes.inc adjusted")
ENDIF() ENDIF()
ENDIF() ENDIF()
...@@ -136,7 +136,7 @@ sub run_stress_test () ...@@ -136,7 +136,7 @@ sub run_stress_test ()
} }
mtr_init_args(\$args); mtr_init_args(\$args);
mtr_add_args($args, "$::glob_mysql_test_dir/mysql-stress-test.pl"); mtr_add_args($args, "$::glob_mysql_test_dir/mariadb-stress-test.pl");
mtr_add_arg($args, "--server-socket=%s", $::master->[0]->{'path_sock'}); mtr_add_arg($args, "--server-socket=%s", $::master->[0]->{'path_sock'});
mtr_add_arg($args, "--server-user=%s", $::opt_user); mtr_add_arg($args, "--server-user=%s", $::opt_user);
mtr_add_arg($args, "--server-database=%s", "test"); mtr_add_arg($args, "--server-database=%s", "test");
......
...@@ -182,7 +182,7 @@ sub run_stress_test () ...@@ -182,7 +182,7 @@ sub run_stress_test ()
} }
#Run stress test #Run stress test
mtr_run("$::glob_mysql_test_dir/mysql-stress-test.pl", $args, "", "", "", ""); mtr_run("$::glob_mysql_test_dir/mariadb-stress-test.pl", $args, "", "", "", "");
if ( ! $::glob_use_embedded_server ) if ( ! $::glob_use_embedded_server )
{ {
stop_all_servers(); stop_all_servers();
......
...@@ -35,7 +35,7 @@ use warnings; ...@@ -35,7 +35,7 @@ use warnings;
BEGIN { BEGIN {
# Check that mysql-test-run.pl is started from mysql-test/ # Check that mysql-test-run.pl is started from mysql-test/
unless ( -f "mysql-test-run.pl" ) unless ( -f "mariadb-test-run.pl" )
{ {
print "**** ERROR **** ", print "**** ERROR **** ",
"You must start mysql-test-run from the mysql-test/ directory\n"; "You must start mysql-test-run from the mysql-test/ directory\n";
...@@ -57,10 +57,10 @@ BEGIN { ...@@ -57,10 +57,10 @@ BEGIN {
if ( $version == 1 ) if ( $version == 1 )
{ {
print "=======================================================\n"; print "=======================================================\n";
print " WARNING: Using mysql-test-run.pl version 1! \n"; print " WARNING: Using mariadb-test-run.pl version 1! \n";
print "=======================================================\n"; print "=======================================================\n";
# Should use exec() here on *nix but this appears not to work on Windows # Should use exec() here on *nix but this appears not to work on Windows
exit(system($^X, "lib/v1/mysql-test-run.pl", @ARGV) >> 8); exit(system($^X, "lib/v1/mariadb-test-run.pl", @ARGV) >> 8);
} }
elsif ( $version == 2 ) elsif ( $version == 2 )
{ {
...@@ -69,7 +69,7 @@ BEGIN { ...@@ -69,7 +69,7 @@ BEGIN {
} }
else else
{ {
print "ERROR: Version $version of mysql-test-run does not exist!\n"; print "ERROR: Version $version of mariadb-test-run does not exist!\n";
exit(1); exit(1);
} }
} }
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
# Call mtr in out-of-source build # Call mtr in out-of-source build
$ENV{MTR_BINDIR} = '@CMAKE_BINARY_DIR@'; $ENV{MTR_BINDIR} = '@CMAKE_BINARY_DIR@';
chdir('@CMAKE_SOURCE_DIR@/mysql-test'); chdir('@CMAKE_SOURCE_DIR@/mysql-test');
exit(system($^X, '@CMAKE_SOURCE_DIR@/mysql-test/mysql-test-run.pl', @ARGV) >> 8); exit(system($^X, '@CMAKE_SOURCE_DIR@/mysql-test/mariadb-test-run.pl', @ARGV) >> 8);
...@@ -20,7 +20,7 @@ EOF ...@@ -20,7 +20,7 @@ EOF
--source $MYSQL_TMP_DIR/mtest.inc --source $MYSQL_TMP_DIR/mtest.inc
--remove_file $MYSQL_TMP_DIR/mtest.inc --remove_file $MYSQL_TMP_DIR/mtest.inc
exec perl mysql-stress-test.pl --mysqltest=$MYSQLTEST_BIN exec perl mariadb-stress-test.pl --mysqltest=$MYSQLTEST_BIN
--server-port=$MASTER_MYPORT --server-socket=$MASTER_MYSOCK --server-port=$MASTER_MYPORT --server-socket=$MASTER_MYSOCK
--server-user=root --cleanup --server-user=root --cleanup
--server-logs-dir=$MYSQLTEST_VARDIR/log --server-logs-dir=$MYSQLTEST_VARDIR/log
......
...@@ -146,11 +146,11 @@ IF(UNIX) ...@@ -146,11 +146,11 @@ IF(UNIX)
# FIND_PROC and CHECK_PID are used by mysqld_safe # FIND_PROC and CHECK_PID are used by mysqld_safe
IF(CMAKE_SYSTEM_NAME MATCHES "Linux") IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
SET (FIND_PROC SET (FIND_PROC
"ps wwwp $PID | grep -v mysqld_safe | grep -- $MYSQLD > /dev/null") "ps wwwp $PID | grep -vE mariadbd-safe -vE mysqld_safe | grep -- $MYSQLD > /dev/null")
ENDIF() ENDIF()
IF(NOT FIND_PROC AND CMAKE_SYSTEM_NAME MATCHES "SunOS") IF(NOT FIND_PROC AND CMAKE_SYSTEM_NAME MATCHES "SunOS")
SET (FIND_PROC SET (FIND_PROC
"ps -p $PID | grep -v mysqld_safe | grep -- $MYSQLD > /dev/null") "ps -p $PID | grep -v mariadbd-safe | grep -- $MYSQLD > /dev/null")
ENDIF() ENDIF()
IF(NOT FIND_PROC) IF(NOT FIND_PROC)
...@@ -158,7 +158,7 @@ IF(NOT FIND_PROC) ...@@ -158,7 +158,7 @@ IF(NOT FIND_PROC)
EXECUTE_PROCESS(COMMAND ps -uaxww OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result) EXECUTE_PROCESS(COMMAND ps -uaxww OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result)
IF(result MATCHES 0) IF(result MATCHES 0)
SET( FIND_PROC SET( FIND_PROC
"ps -uaxww | grep -v mysqld_safe | grep -- $MYSQLD | grep $PID > /dev/null") "ps -uaxww | grep -v mariadbd-safe | grep -- $MYSQLD | grep $PID > /dev/null")
ENDIF() ENDIF()
ENDIF() ENDIF()
...@@ -166,7 +166,7 @@ IF(NOT FIND_PROC) ...@@ -166,7 +166,7 @@ IF(NOT FIND_PROC)
# SysV style # SysV style
EXECUTE_PROCESS(COMMAND ps -ef OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result) EXECUTE_PROCESS(COMMAND ps -ef OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result)
IF(result MATCHES 0) IF(result MATCHES 0)
SET( FIND_PROC "ps -ef | grep -v mysqld_safe | grep -- $MYSQLD | grep $PID > /dev/null") SET( FIND_PROC "ps -ef | grep -v mariadbd-safe | grep -- $MYSQLD | grep $PID > /dev/null")
ENDIF() ENDIF()
ENDIF() ENDIF()
......
...@@ -315,7 +315,7 @@ parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mysqld mys ...@@ -315,7 +315,7 @@ parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mysqld mys
parse_arguments PICK-ARGS-FROM-ARGV "$@" parse_arguments PICK-ARGS-FROM-ARGV "$@"
rel_mysqld="$dirname0/@INSTALL_SBINDIR@/mysqld" rel_mysqld="$dirname0/@INSTALL_SBINDIR@/mariadbd"
# Configure paths to support files # Configure paths to support files
if test -n "$srcdir" if test -n "$srcdir"
...@@ -338,11 +338,11 @@ then ...@@ -338,11 +338,11 @@ then
cannot_find_file resolveip @resolveip_locations@ cannot_find_file resolveip @resolveip_locations@
exit 1 exit 1
fi fi
mysqld=`find_in_dirs mysqld @mysqld_locations@` mysqld=`find_in_dirs mariadbd @mysqld_locations@`
if test -z "$mysqld" if test -z "$mysqld"
then then
cannot_find_file mysqld @mysqld_locations@ cannot_find_file mariadbd @mysqld_locations@
exit 1 exit 1
fi fi
langdir=`find_in_dirs --dir errmsg.sys @errmsg_locations@` langdir=`find_in_dirs --dir errmsg.sys @errmsg_locations@`
if test -z "$langdir" if test -z "$langdir"
...@@ -360,7 +360,7 @@ then ...@@ -360,7 +360,7 @@ then
plugindir=`find_in_dirs --dir auth_pam.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin` plugindir=`find_in_dirs --dir auth_pam.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin`
pamtooldir=$plugindir pamtooldir=$plugindir
# relative from where the script was run for a relocatable install # relative from where the script was run for a relocatable install
elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mysqld" elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mariadbd"
then then
basedir="$dirname0" basedir="$dirname0"
bindir="$basedir/@INSTALL_BINDIR@" bindir="$basedir/@INSTALL_BINDIR@"
...@@ -374,7 +374,7 @@ else ...@@ -374,7 +374,7 @@ else
basedir="@prefix@" basedir="@prefix@"
bindir="@bindir@" bindir="@bindir@"
resolveip="$bindir/resolveip" resolveip="$bindir/resolveip"
mysqld="@sbindir@/mysqld" mysqld="@sbindir@/mariadbd"
srcpkgdatadir="@pkgdatadir@" srcpkgdatadir="@pkgdatadir@"
buildpkgdatadir="@pkgdatadir@" buildpkgdatadir="@pkgdatadir@"
plugindir="@pkgplugindir@" plugindir="@pkgplugindir@"
...@@ -580,7 +580,7 @@ else ...@@ -580,7 +580,7 @@ else
echo echo
echo " shell> $mysqld --skip-grant-tables --general-log &" echo " shell> $mysqld --skip-grant-tables --general-log &"
echo echo
echo "and use the command line tool $bindir/mysql" echo "and use the command line tool $bindir/mariadb"
echo "to connect to the mysql database and look at the grant tables:" echo "to connect to the mysql database and look at the grant tables:"
echo echo
echo " shell> $bindir/mysql -u root mysql" echo " shell> $bindir/mysql -u root mysql"
...@@ -614,11 +614,11 @@ then ...@@ -614,11 +614,11 @@ then
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !" echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !"
echo "To do so, start the server, then issue the following commands:" echo "To do so, start the server, then issue the following commands:"
echo echo
echo "'$bindir/mysqladmin' -u root password 'new-password'" echo "'$bindir/mariadb-admin' -u root password 'new-password'"
echo "'$bindir/mysqladmin' -u root -h $hostname password 'new-password'" echo "'$bindir/mariadb-admin' -u root -h $hostname password 'new-password'"
echo echo
echo "Alternatively you can run:" echo "Alternatively you can run:"
echo "'$bindir/mysql_secure_installation'" echo "'$bindir/mariadb-secure-installation'"
echo echo
echo "which will also give you the option of removing the test" echo "which will also give you the option of removing the test"
echo "databases and anonymous user created by default. This is" echo "databases and anonymous user created by default. This is"
......
...@@ -159,15 +159,15 @@ then ...@@ -159,15 +159,15 @@ then
cannot_find_file my_print_defaults $basedir/bin $basedir/extra cannot_find_file my_print_defaults $basedir/bin $basedir/extra
exit 1 exit 1
fi fi
mysql_command=`find_in_basedir mysql bin` mysql_command=`find_in_basedir mariadb bin`
if test -z "$mysql_command" if test -z "$mysql_command"
then then
cannot_find_file mysql $basedir/bin cannot_find_file mariadb $basedir/bin
exit 1 exit 1
fi fi
else else
print_defaults="@bindir@/my_print_defaults" print_defaults="@bindir@/my_print_defaults"
mysql_command="@bindir@/mysql" mysql_command="@bindir@/mariadb"
fi fi
if test ! -x "$print_defaults" if test ! -x "$print_defaults"
......
...@@ -35,7 +35,7 @@ BEGIN { ...@@ -35,7 +35,7 @@ BEGIN {
# **************************** # ****************************
# information on MariaDB # information on MariaDB
$MYSQL = '@bindir@/mysql'; # path to mysql executable $MYSQL = '@bindir@/mariadb'; # path to mariadb executable
$SERVER = '3.21'; $SERVER = '3.21';
$MYSQL_OPT = ' --batch --unbuffered'; $MYSQL_OPT = ' --batch --unbuffered';
$ACCESS_DB = 'mysql'; # name of DB with grant-tables $ACCESS_DB = 'mysql'; # name of DB with grant-tables
...@@ -50,8 +50,8 @@ BEGIN { ...@@ -50,8 +50,8 @@ BEGIN {
$ACCESS_U_BCK = 'user_backup'; $ACCESS_U_BCK = 'user_backup';
$ACCESS_D_BCK = 'db_backup'; $ACCESS_D_BCK = 'db_backup';
$DIFF = '/usr/bin/diff'; $DIFF = '/usr/bin/diff';
$MYSQLDUMP = '@bindir@/mysqldump'; $MYSQLDUMP = '@bindir@/mariadb-dump';
#path to mysqldump executable #path to mariadb-dump executable
$MYSQLADMIN= 'http://foobar.com/MySQLadmin'; $MYSQLADMIN= 'http://foobar.com/MySQLadmin';
#URL of CGI for manipulating #URL of CGI for manipulating
......
...@@ -29,8 +29,8 @@ my @defaults_options; # Leading --no-defaults, --defaults-file, etc. ...@@ -29,8 +29,8 @@ my @defaults_options; # Leading --no-defaults, --defaults-file, etc.
$opt_example = 0; $opt_example = 0;
$opt_help = 0; $opt_help = 0;
$opt_log = undef(); $opt_log = undef();
$opt_mysqladmin = "@bindir@/mysqladmin"; $opt_mysqladmin = "@bindir@/mariadb-admin";
$opt_mysqld = "@sbindir@/mysqld"; $opt_mysqld = "@sbindir@/mariadbd";
$opt_no_log = 0; $opt_no_log = 0;
$opt_password = undef(); $opt_password = undef();
$opt_tcp_ip = 0; $opt_tcp_ip = 0;
...@@ -360,9 +360,9 @@ sub start_mysqlds() ...@@ -360,9 +360,9 @@ sub start_mysqlds()
$tmp.= " $options[$j]"; $tmp.= " $options[$j]";
} }
} }
if ($opt_verbose && $com =~ m/\/(safe_mysqld|mysqld_safe)$/ && !$info_sent) if ($opt_verbose && $com =~ m/\/(mariadbd-safe)$/ && !$info_sent)
{ {
print "WARNING: $1 is being used to start mysqld. In this case you "; print "WARNING: $1 is being used to start mariadbd. In this case you ";
print "may need to pass\n\"ledir=...\" under groups [mysqldN] to "; print "may need to pass\n\"ledir=...\" under groups [mysqldN] to ";
print "$1 in order to find the actual mysqld binary.\n"; print "$1 in order to find the actual mysqld binary.\n";
print "ledir (library executable directory) should be the path to the "; print "ledir (library executable directory) should be the path to the ";
...@@ -680,14 +680,14 @@ sub example ...@@ -680,14 +680,14 @@ sub example
# #
# 2.PID-FILE # 2.PID-FILE
# #
# If you are using mysqld_safe to start mysqld, make sure that every # If you are using mariadbd-safe to start mariadbd, make sure that every
# MariaDB server has a separate pid-file. In order to use mysqld_safe # MariaDB server has a separate pid-file. In order to use mariadbd-safe
# via $my_progname, you need to use two options: # via $my_progname, you need to use two options:
# #
# mysqld=/path/to/mysqld_safe # mysqld=/path/to/mariadbd-safe
# ledir=/path/to/mysqld-binary/ # ledir=/path/to/mariadbd-binary/
# #
# ledir (library executable directory), is an option that only mysqld_safe # ledir (library executable directory), is an option that only mariadbd-safe
# accepts, so you will get an error if you try to pass it to mysqld directly. # accepts, so you will get an error if you try to pass it to mysqld directly.
# For this reason you might want to use the above options within [mysqld#] # For this reason you might want to use the above options within [mysqld#]
# group directly. # group directly.
...@@ -740,8 +740,8 @@ sub example ...@@ -740,8 +740,8 @@ sub example
# #
[mysqld_multi] [mysqld_multi]
mysqld = @bindir@/mysqld_safe mysqld = @bindir@/mariadbd-safe
mysqladmin = @bindir@/mysqladmin mysqladmin = @bindir@/mariadb-admin
user = multi_admin user = multi_admin
password = my_password password = my_password
...@@ -754,9 +754,9 @@ language = @datadir@/mysql/english ...@@ -754,9 +754,9 @@ language = @datadir@/mysql/english
user = unix_user1 user = unix_user1
[mysqld3] [mysqld3]
mysqld = /path/to/mysqld_safe mysqld = /path/to/mariadbd-safe
ledir = /path/to/mysqld-binary/ ledir = /path/to/mariadbd-binary/
mysqladmin = /path/to/mysqladmin mysqladmin = /path/to/mariadb-admin
socket = /tmp/mysql.sock3 socket = /tmp/mysql.sock3
port = 3308 port = 3308
pid-file = @localstatedir@3/hostname.pid3 pid-file = @localstatedir@3/hostname.pid3
...@@ -841,9 +841,9 @@ Using: @{[join ' ', @defaults_options]} ...@@ -841,9 +841,9 @@ Using: @{[join ' ', @defaults_options]}
--mysqladmin=... mysqladmin binary to be used for a server shutdown. --mysqladmin=... mysqladmin binary to be used for a server shutdown.
Since version 2.10 this can be given within groups [mysqld#] Since version 2.10 this can be given within groups [mysqld#]
Using: $mysqladmin Using: $mysqladmin
--mysqld=... mysqld binary to be used. Note that you can give mysqld_safe --mysqld=... mariadbd binary to be used. Note that you can give mariadbd-safe
to this option also. The options are passed to mysqld. Just to this option also. The options are passed to mysqld. Just
make sure you have mysqld in your PATH or fix mysqld_safe. make sure you have mariadbd in your PATH or fix mariadbd-safe.
Using: $mysqld Using: $mysqld
Please note: Since mysqld_multi version 2.3 you can also Please note: Since mysqld_multi version 2.3 you can also
give this option inside groups [mysqld#] in ~/.my.cnf, give this option inside groups [mysqld#] in ~/.my.cnf,
......
...@@ -531,7 +531,8 @@ else ...@@ -531,7 +531,8 @@ else
ledir='@libexecdir@' ledir='@libexecdir@'
fi fi
helper=`find_in_bin mysqld_safe_helper` helper=`find_in_bin mariadbd-safe-helper`
print_defaults=`find_in_bin my_print_defaults` print_defaults=`find_in_bin my_print_defaults`
# Check if helper exists # Check if helper exists
command -v $helper --help >/dev/null 2>&1 command -v $helper --help >/dev/null 2>&1
......
...@@ -603,16 +603,16 @@ SCRIPTS_DIR=$(cd "$script_binary"; pwd -P) ...@@ -603,16 +603,16 @@ SCRIPTS_DIR=$(cd "$script_binary"; pwd -P)
EXTRA_DIR="$SCRIPTS_DIR/../extra" EXTRA_DIR="$SCRIPTS_DIR/../extra"
CLIENT_DIR="$SCRIPTS_DIR/../client" CLIENT_DIR="$SCRIPTS_DIR/../client"
if [ -x "$CLIENT_DIR/mysql" ]; then if [ -x "$CLIENT_DIR/mariadb" ]; then
MYSQL_CLIENT="$CLIENT_DIR/mysql" MYSQL_CLIENT="$CLIENT_DIR/mariadb"
else else
MYSQL_CLIENT="$(command -v mysql)" MYSQL_CLIENT="$(command -v mariadb)"
fi fi
if [ -x "$CLIENT_DIR/mysqldump" ]; then if [ -x "$CLIENT_DIR/mariadb-dump" ]; then
MYSQLDUMP="$CLIENT_DIR/mysqldump" MYSQLDUMP="$CLIENT_DIR/mariadb-dump"
else else
MYSQLDUMP="$(command -v mysqldump)" MYSQLDUMP="$(command -v mariadb-dump)"
fi fi
wsrep_log() wsrep_log()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment