Server IP : 104.21.38.3 / Your IP : 162.158.88.156 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 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 : ON Directory : /www/server/mysql/src/mysql-test/suite/ndb/r/ |
Upload File : |
DROP TABLE IF EXISTS t1,t2; drop database if exists mysqltest; CREATE TABLE t1 ( pk1 INT NOT NULL PRIMARY KEY, attr1 INT NOT NULL, attr2 INT, attr3 VARCHAR(10), INDEX i1(attr1) ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0,0,0,"zero"),(1,1,1,"one"),(2,2,2,"two"); SELECT * FROM t1 WHERE attr1 = 1; pk1 attr1 attr2 attr3 1 1 1 one alter table t1 rename t2; SELECT * FROM t2 WHERE attr1 = 1; pk1 attr1 attr2 attr3 1 1 1 one alter table t2 rename t1, add attr4 int; ERROR 42000: This version of MySQL doesn't yet support 'alter table t2 rename t1, add attr4 int' create database ndbtest; alter table t2 rename ndbtest.t2; SELECT * FROM ndbtest.t2 WHERE attr1 = 1; pk1 attr1 attr2 attr3 1 1 1 one drop table ndbtest.t2; create table t1 ( pk1 INT NOT NULL PRIMARY KEY, b blob ) engine = ndbcluster; alter table t1 rename ndbtest.t1; alter table ndbtest.t1 rename test.t1; drop table test.t1; drop database ndbtest;