Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 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 : OFF | Sudo : ON | Pkexec : OFF Directory : /www/server/mysql/mysql-test/t/ |
Upload File : |
# # [ Based on ./suite/rpl/t/rpl_flush_logs.test ] # This test verifies if the 'flush individual logs' command # works fine with mysqladmin. # --source include/master-slave.inc --source include/have_binlog_format_statement.inc connection master; # # Test 'flush-logs error' command. # --echo # Test if mysqladmin supports 'flush-logs error' command. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs error file_exists $MYSQLTEST_VARDIR/tmp/master_log.err; --echo # Make sure binary logs were not flushed --echo # after execute 'flush error logs' statement. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000002; --source include/sync_slave_sql_with_master.inc --echo # Make sure relay logs were not flushed --echo # after execute 'flush error logs' statement. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.2/data/slave-relay-bin.000003; connection master; # # Test 'flush-logs relay' command. # --echo # Test if mysqladmin supports 'flush-logs relay' command. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs relay --source include/sync_slave_sql_with_master.inc --echo # Check if 'slave-relay-bin.000003' file is created --echo # after executing 'flush-logs relay' command. file_exists $MYSQLTEST_VARDIR/mysqld.2/data/slave-relay-bin.000003; connection master; --echo # Make sure binary logs were not flushed --echo # after executeing 'flush-logs relay' command. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000002; # # Test 'flush-logs slow' command. # --echo # Test if mysqladmin supports 'flush-logs slow' command. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs slow --echo # Make sure binary logs were not be flushed --echo # after executing 'flush-logs slow' command. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000002; # # Test 'flush-logs general' command. # --echo # Test if mysqladmin supports 'flush-logs general' command. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs general --echo # Make sure binary logs were not flushed --echo # after execute 'flush-logs general' command. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000002; # # Test 'flush-logs engine' command. # --echo # Test if mysqladmin supports 'flush-logs engine' command. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs engine --echo # Make sure binary logs were not flushed --echo # after execute 'flush-logs engine' statement. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000002; # # Test 'flush-logs binary' command. # --echo # Make sure the 'master-bin.000002' file does not --echo # exist before execution of 'flush-logs binary' command. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000002; --echo # Test if mysqladmin supports 'flush-logs binary' command. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs binary --echo # Check if 'master-bin.000002' file is created --echo # after execution of 'flush-logs binary' statement. file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000002; file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000001; # Test 'flush error logs, relay logs' statement --source include/sync_slave_sql_with_master.inc --echo # Make sure the 'slave-relay-bin.000006' file does not exist --echo # exist before execute 'flush error logs, relay logs' statement. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.2/data/slave-relay-bin.000006; connection master; --echo # Test if mysqladmin support combining multiple kinds of logs into one statement. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs error relay file_exists $MYSQLTEST_VARDIR/tmp/master_log.err; --echo # Make sure binary logs were not flushed --echo # after execute 'flush error logs, relay logs' statement. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000003; --source include/sync_slave_sql_with_master.inc --echo # Check the 'slave-relay-bin.000006' file is created after --echo # execute 'flush error logs, relay logs' statement. file_exists $MYSQLTEST_VARDIR/mysqld.2/data/slave-relay-bin.000006; # # Test 'flush-logs' command # --echo # Make sure the 'slave-relay-bin.000007' and 'slave-relay-bin.000008' --echo # files do not exist before execute 'flush error logs, relay logs' --echo # statement. --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.2/data/slave-relay-bin.000007; --error 1 file_exists $MYSQLTEST_VARDIR/mysqld.2/data/slave-relay-bin.000008; --source include/stop_slave_sql.inc connection master; --echo # Test if 'flush-logs' command works fine and flush all the logs. --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs file_exists $MYSQLTEST_VARDIR/tmp/master_log.err; --echo # Check 'master-bin.000003' is created --echo # after executing 'flush-logs' command. file_exists $MYSQLTEST_VARDIR/mysqld.1/data/master-bin.000003; --source include/sync_slave_io_with_master.inc --echo # Check the 'slave-relay-bin.000007' and 'slave-relay-bin.000008' --echo # files are created after execute 'flush logs' statement. file_exists $MYSQLTEST_VARDIR/mysqld.2/data/slave-relay-bin.000007; file_exists $MYSQLTEST_VARDIR/mysqld.2/data/slave-relay-bin.000008; --source include/start_slave_sql.inc --source include/rpl_end.inc --echo # Test multiple options to flush-logs --echo # Must work --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs binary error ping --echo # Must work --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs ping --error 1 --exec $MYSQLADMIN --no-defaults -u root -S $MASTER_MYSOCK -P $MASTER_MYPORT flush-logs pong 2>&1