Server IP : 185.86.78.101 / Your IP : 216.73.216.213 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/r/ |
Upload File : |
call mtr.add_suppression("Failed to write to mysql.general_log"); drop table if exists t1; create table t1 (a int) engine = csv partition by list (a) (partition p0 values in (null)); ERROR HY000: Engine cannot be used in partitioned tables USE mysql; TRUNCATE TABLE general_log; SET @old_general_log_state = @@global.general_log; SET GLOBAL general_log = 0; ALTER TABLE general_log ENGINE = MyISAM; ALTER TABLE general_log PARTITION BY RANGE (TO_DAYS(event_time)) (PARTITION p0 VALUES LESS THAN (733144), PARTITION p1 VALUES LESS THAN (3000000)); ERROR HY000: Incorrect usage of PARTITION and log table ALTER TABLE general_log ENGINE = CSV; SET GLOBAL general_log = @old_general_log_state; use test; # # Bug#40281: partitioning the general log table crashes the server # # set up partitioned log, and switch to it USE mysql; SET @old_general_log_state = @@global.general_log; SET GLOBAL general_log = 0; CREATE TABLE gl_partitioned LIKE general_log; ALTER TABLE gl_partitioned ENGINE=myisam; ALTER TABLE gl_partitioned PARTITION BY HASH (thread_id) PARTITIONS 10; Warnings: Warning 1287 The partition engine, used by table 'mysql.gl_partitioned', is deprecated and will be removed in a future release. Please use native partitioning instead. ALTER TABLE general_log RENAME TO gl_nonpartitioned; ALTER TABLE gl_partitioned RENAME TO general_log; Warnings: Warning 1287 The partition engine, used by table 'mysql.general_log', is deprecated and will be removed in a future release. Please use native partitioning instead. SELECT @@global.log_output INTO @old_glo; SET GLOBAL log_output='table'; SET GLOBAL general_log =1; Warnings: Warning 1287 The partition engine, used by table 'mysql.general_log', is deprecated and will be removed in a future release. Please use native partitioning instead. # do some things to be logged to partitioned log, should fail USE /* 1 */ test; CREATE TABLE t1 (i INT); INSERT INTO t1 VALUES (1); SELECT * FROM t1; i 1 USE mysql; SET GLOBAL general_log =0; ALTER TABLE general_log RENAME TO gl_partitioned; Warnings: Warning 1287 The partition engine, used by table 'mysql.gl_partitioned', is deprecated and will be removed in a future release. Please use native partitioning instead. ALTER TABLE gl_nonpartitioned RENAME TO general_log; # show whether we actually logged anything (no) to general_log SELECT COUNT(argument) FROM gl_partitioned; COUNT(argument) 0 Warnings: Warning 1287 The partition engine, used by table 'mysql.gl_partitioned', is deprecated and will be removed in a future release. Please use native partitioning instead. DROP TABLE gl_partitioned; SET GLOBAL log_output = @old_glo; SET GLOBAL general_log = 1; USE /* 2 */ test; DROP TABLE t1; SET GLOBAL general_log = @old_general_log_state; End of 5.1 tests